Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jnixon
Visitor

How to detect HLS stream switching

Is there a way to detect when HLS streams switch? I would like to gather some statistics. From what I can tell an isStreamStarted event is thrown when streams switch and I see there is some data in the isStreamStarted event on roVideoScreen, but StreamBitrate seems to always be 0.
0 Kudos
2 REPLIES 2
RokuChris
Roku Employee
Roku Employee

Re: How to detect HLS stream switching

"jnixon" wrote:
Is there a way to detect when HLS streams switch? I would like to gather some statistics. From what I can tell an isStreamStarted event is thrown when streams switch and I see there is some data in the isStreamStarted event on roVideoScreen, but StreamBitrate seems to always be 0.


There's a roVideoScreenEvent called isStreamSegmentInfo() that I think will give you the data you're looking for. If memory serves, it's only available on 4.x, so you won't get it on older boxes running firmware 3.1.
0 Kudos
jnixon
Visitor

Re: How to detect HLS stream switching

Thank you for the response. Is that event documented anywhere?
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.