I am using Videoplayer and noticed something odd lately.
My link plays in VLC Live with http://180.250.29.21/jhos/metrotv/Playlist.m3u8
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.
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.
How to make the PlayStart Value to the High Value to force it to beginning?
Add “PlayStart: 999999999” to the metadata for the stream object you pass to the video screen.
I’ll start looking into that. Thanks for the reply.
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
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
“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?
“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!
![]()
