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
pjsteele
Level 7

HLS and Events?

What events associated with the new HLS format? i.e. Segment Change? Playlist Complete?

The reason I ask is because I am combining several different clips into one M3U8 playlist. It would be very handy if I can determine what segment I am playing.

Would the #EXTINF syntax help?

Thanks!!
0 Kudos
3 Replies
RokuMarkn
Level 7

Re: HLS and Events?

There are no new events for HLS. All the normal events that occur during MP4 playback occur during HLS. There is no special event to indicate a segment change.

Also you should be aware that currently playback of mixed content in an HLS stream will work only if the timestamps in the stream (the PTS values) increment seamlessly across all the pieces of content. You can't, for example, concatenate two streams that both start at PTS zero because the jump back down to zero at the boundary will confuse the decoder and probably produce A/V sync problems and other issues.

--Mark
0 Kudos
pjsteele
Level 7

Re: HLS and Events?

Thanks Mark. That is very helpful
0 Kudos
RokuKevin
Level 7

Re: HLS and Events?

There are new video playback events in the new v2.6 firmware, but they are not specific to HLS. They apply to all video playback... The new event types are:

isStreamStarted()
isPaused()
isResumed()


--Kevin
0 Kudos