Your Digital Media Has Never Looked So Good

 
jseigle85
Topic Author
Posts: 32
Joined: Tue Apr 26, 2011 8:02 pm

Please Help! Roku Player start at beginning of live stream

Thu May 05, 2011 9:36 pm

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
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

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

Thu May 05, 2011 9:56 pm

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)
 
jseigle85
Topic Author
Posts: 32
Joined: Tue Apr 26, 2011 8:02 pm

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

Thu May 05, 2011 10:13 pm

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?
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

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

Thu May 05, 2011 10:22 pm

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)

Who is online

Users browsing this forum: No registered users and 9 guests