Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sonnykr
Visitor

HLS contentList for roVideoPlayer

I was trying to use a m3u8 HLS playlist to roVideoPlayer. I am using the demo code given here: http://blog.roku.com/developer/2014/01/ ... evelopers/ or download zip here: http://sourceforge.net/projects/rokusdk ... p/download

This is what given in the sample code:

player = CreateObject("roVideoPlayer")
player.SetContentList([
{
Stream : { url :"http://ecn.channel9.msdn.com/o9/content/smf/smoothcontent/elephantsdream/Elephants_Dream_1024-h264-st-aac.ism/manifest" }
StreamFormat : "ism"
TrackIDAudio: "audio_eng"
TrackIDSubtitle: "ism/textstream_eng"
}
])


And I want to change it to HLS instead of Smooth streaming. So I did:

player = CreateObject("roVideoPlayer")
player.SetContentList([
{
Stream : { url :"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8" }
StreamFormat : "hls"
SwitchingStrategy:"full-adaptation"
}
])


Am I missing anything here? Because the video is not playing. Also in the roVideoPlayerEvent event, im getting type(msg) as invalid

I am very much new to HLS and building player. Your help is very much appreciated.
0 Kudos