Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
bandal
Level 8

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.
0 Kudos
8 Replies
TheEndless
Level 7

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)
0 Kudos
bandal
Level 8

Re: HLS Stream Issue in Playback

How to make the PlayStart Value to the High Value to force it to beginning?
0 Kudos
TheEndless
Level 7

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)
0 Kudos
bandal
Level 8

Re: HLS Stream Issue in Playback

I'll start looking into that. Thanks for the reply.
0 Kudos
bandal
Level 8

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
0 Kudos
Roku Employee
Roku Employee

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:

time=createobject("rodatetime")
now=time.asseconds()
episode.playstart=now+1800
videoobject.setcontent(episode)
videoobject.play()


- Joel
0 Kudos
TheEndless
Level 7

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)
0 Kudos
drobinson
Level 7

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! Smiley Very Happy Smiley Very Happy
0 Kudos