Your Digital Media Has Never Looked So Good

 
bandal
Topic Author
Posts: 260
Joined: Sat Oct 15, 2011 2:17 pm

HLS Stream Issue in Playback

Fri Jan 31, 2014 12:09 pm

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

Re: HLS Stream Issue in Playback

Fri Jan 31, 2014 12:12 pm

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)
 
bandal
Topic Author
Posts: 260
Joined: Sat Oct 15, 2011 2:17 pm

Re: HLS Stream Issue in Playback

Fri Jan 31, 2014 12:18 pm

How to make the PlayStart Value to the High Value to force it to beginning?
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: HLS Stream Issue in Playback

Fri Jan 31, 2014 12:21 pm

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)
 
bandal
Topic Author
Posts: 260
Joined: Sat Oct 15, 2011 2:17 pm

Re: HLS Stream Issue in Playback

Fri Jan 31, 2014 12:23 pm

I'll start looking into that. Thanks for the reply.
 
bandal
Topic Author
Posts: 260
Joined: Sat Oct 15, 2011 2:17 pm

Re: HLS Stream Issue in Playback

Fri Jan 31, 2014 1:04 pm

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
 
User avatar
RokuJoel
Posts: 1758
Joined: Mon Nov 14, 2011 5:22 pm

Re: HLS Stream Issue in Playback

Fri Jan 31, 2014 1:23 pm

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

Re: HLS Stream Issue in Playback

Fri Jan 31, 2014 1:35 pm

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)
 
drobinson
Posts: 5
Joined: Mon Feb 23, 2015 3:52 pm

Re: HLS Stream Issue in Playback

Thu Feb 26, 2015 1:10 pm

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! :D :D

Who is online

Users browsing this forum: No registered users and 7 guests