Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Play m3u8 stream with params

$
0
0

I want to play a m3u8 video with params in the URL:

In my video.xml i have the following code:

<Alloy>
    <Tab title="Livestream">
        <Window>
            <LeftNavButton>
                <Button id="logoutButton" class="leftButton">Logout</Button>
            </LeftNavButton>
            <TitleControl>
                <Label id="vodOverviewTitle" class="titleControl">Livestream</Label>
            </TitleControl> 
 
            <VideoPlayer id="videoPlayer" ns=""   ns="Ti.Media" top="2" mediaControlStyle="Titanium.Media.VIDEO_CONTROL_DEFAULT"
                     height="300" width="300" backgroundColor="blue" autoplay="false">
            </VideoPlayer>
        </Window>
    </Tab>
</Alloy>
In the livestream controller i have the following code: $.videoPlayer.url = 'http://xx.xxx.xx.xx/xxx/xxxxxXXX.smil/playlist.m3u8?mxtendtime=xxxxxx&mxtstarttime=xxx&mxthash=xxxxxxxxxxxxxxxxxxx'

when i add the follow url to $.videoPlayer.url: "http://sw.gostreaming.tv:1935/live/smil:myStream.smil/playlist.m3u8" it works fine! But when i add the m3u8 stream with params, the videoPlayer does nothing!

What's the problem?

Thanks in advance!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>