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: 
jseigle85
Visitor

Please Help! Roku Player start at beginning of live stream

Someone please help. I have a live feed that I am broadcasting. My Shows are 30 minutes long. A problem that I am having is when my broadcast is almost done, let say I am on the last 5 minutes of my show, if someone with a roku player click on my channel it will start there stream from the beginning. I am using wowza media server. It is set to pass a segment every 10 seconds. I am not sure how to set the playstart value. Can someone help me with this. If I need to insert a code please tell me what code I need and where to insert it. I am using the example in the SDK, customvideoplayer
0 Kudos
3 REPLIES 3
TheEndless
Channel Surfer

Re: Please Help! Roku Player start at beginning of live stre

At line 75...
    this.player.SetContentList([{
Stream: { url: "http://ec2-184-72-239-149.compute-1.amazonaws.com:1935/demos/smil:bigbuckbunnyiphone.smil/playlist.m3u8" }
StreamFormat: "hls"
PlayStart: 2000 ' play position in seconds
}])

I've found that setting the PlayStart value to something absurdly high will work just as well as setting it to the actual live value.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
jseigle85
Visitor

Re: Please Help! Roku Player start at beginning of live stre

Can you explain to me what the number 2000 stand for? If I use a low number what will happen? If I use a high number what will happen? is there a number I can set it to to keep it with the actual live feed or just a few seconds behind the live stream?
0 Kudos
TheEndless
Channel Surfer

Re: Please Help! Roku Player start at beginning of live stre

"jseigle85" wrote:
Can you explain to me what the number 2000 stand for? If I use a low number what will happen? If I use a high number what will happen? is there a number I can set it to to keep it with the actual live feed or just a few seconds behind the live stream?

The comment was intended to explain that. 2000 is just an arbitrary number I picked, but it represents the seconds into the stream to start playing. If you set it to 30, it will start 30 seconds into the M3U8. If you set it to 1800, it will start at 30 minutes into the M3U8. Since you said your shows were 30 minutes long, I picked 2000 so it would start as far into the stream as possible (i.e., live).
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos