bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
11:09 AM
HLS Stream Issue in Playback
I am using Videoplayer and noticed something odd lately.
My link plays in VLC Live with <streamUrl>http://180.250.29.21/jhos/metrotv/Playlist.m3u8</streamUrl>
but on the Roku it is no longer live, but starts 4 1/2 hours before becoming live. Is there a way to correct this somewhere?
ice time stamp
Try it out and you can see what I mean. Using a Roku2 XS and have not had this issue before. Try VLC and notice the time and play same link on the Roku and notice the time.
My link plays in VLC Live with <streamUrl>http://180.250.29.21/jhos/metrotv/Playlist.m3u8</streamUrl>
but on the Roku it is no longer live, but starts 4 1/2 hours before becoming live. Is there a way to correct this somewhere?
ice time stamp
Try it out and you can see what I mean. Using a Roku2 XS and have not had this issue before. Try VLC and notice the time and play same link on the Roku and notice the time.
8 REPLIES 8

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
11:12 AM
Re: HLS Stream Issue in Playback
Have you marked the stream as "Live"? If not, add that to the metadata. If that still doesn't fix it, you could add a PlayStart value that's absurdly high to force the player to seek to the end of the playlist.
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
11:18 AM
Re: HLS Stream Issue in Playback
How to make the PlayStart Value to the High Value to force it to beginning?

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
11:21 AM
Re: HLS Stream Issue in Playback
Add "PlayStart: 999999999" to the metadata for the stream object you pass to the video screen.
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
11:23 AM
Re: HLS Stream Issue in Playback
I'll start looking into that. Thanks for the reply.
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
12:04 PM
Re: HLS Stream Issue in Playback
In my appDetailScreen.brs is where my PlayStart is: How would I change it here to really make it work? I also have VOD in my xml files versus live links.
ElseIf msg.isButtonPressed()
Print"ButtonPressed"
If msg.GetIndex()=1
If showlist[showindex].contentformat<>"audio"
PlayStart=RegRead(showList[showIndex].ContentId)
If PlayStart<>invalid
showList[showIndex].PlayStart=PlayStart.ToInt()
End If
'Add 02-27-13
If showList[showIndex].StreamUrls[0]="INVALID"
ShowErrorDialog("No Video Available Yet")
Else
'end 02-27-13
showVideoScreen(showList[showIndex])
End If
End If
End If

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
12:23 PM
Re: HLS Stream Issue in Playback
To force the player to run closer to realtime, I use the following code to set Playstart a bit into the future:
- Joel
time=createobject("rodatetime")
now=time.asseconds()
episode.playstart=now+1800
videoobject.setcontent(episode)
videoobject.play()
- Joel

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2014
12:35 PM
Re: HLS Stream Issue in Playback
"RokuJoel" wrote:
To force the player to run closer to realtime, I use the following code to set Playstart a bit into the future:
time=createobject("rodatetime")
now=time.asseconds()
episode.playstart=now+1800
videoobject.setcontent(episode)
videoobject.play()
- Joel
Interesting. So, does that mean live streams use the date for PlayStart instead of the duration that VOD streams use?
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
drobinson
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2015
12:10 PM
Re: HLS Stream Issue in Playback
"RokuJoel" wrote:
To force the player to run closer to realtime, I use the following code to set Playstart a bit into the future:
time=createobject("rodatetime")
now=time.asseconds()
episode.playstart=now+1800
videoobject.setcontent(episode)
videoobject.play()
- Joel
Will this allow the video on demand to still start from the beginning?
Can you show where I would post this code within the appDetailScreen.brs ?
I'm pretty new to this and am still learning my way around bright script.
Thank you for any help! I've been reading lot's of RokuJoel posts these past few days! 😄 😄