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: 
joeflateau
Level 7

HLS Live Playlists Problem

The Roku implementation of HLS seems to always start at the first segment of a playlist.

This is fine for VOD or Sliding Window Live playlists, but for Full Event Live DVR playlists (lacking EXT-X-ENDLIST, and having either no EXT-X-MEDIA-SEQUENCE, or an EXT-X-MEDIA-SEQUENCE = 0) that is not correct behavior.

Full-event Live playlists should start 3-5 segments from "Live". Is there a workaround for this outside of manually seeking to total duration - (segment duration * 3)?
Company: SIDEARM Sports
Apps: The American Digital Network, OVC Digital Network
0 Kudos
6 Replies
TheEndless
Level 7

Re: HLS Live Playlists Problem

Set the PlayStart value to a high number. I usually use the current time in seconds.
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
joeflateau
Level 7

Re: HLS Live Playlists Problem

Will any value greater than the current duration work? Or is "right now" in seconds important? I don't use EXT-X-PROGRAM-DATE-TIME
Company: SIDEARM Sports
Apps: The American Digital Network, OVC Digital Network
0 Kudos
TheEndless
Level 7

Re: HLS Live Playlists Problem

"joeflateau" wrote:
Will any value greater than the current duration work? Or is "right now" in seconds important? I don't use EXT-X-PROGRAM-DATE-TIME

Any number higher than the current duration should work. Using the current time just ensures that it's definitely set high enough.
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
joeflateau
Level 7

Re: HLS Live Playlists Problem

I see, I see. Thank you for the help!
Company: SIDEARM Sports
Apps: The American Digital Network, OVC Digital Network
0 Kudos

Re: HLS Live Playlists Problem

Setting PlayStart on the video object to -1 is even easier and also did the trick for me.
0 Kudos
joeflateau
Level 7

Re: HLS Live Playlists Problem

Nice solution! I was about to set it to Int's Max Value
Company: SIDEARM Sports
Apps: The American Digital Network, OVC Digital Network
0 Kudos