Forum Discussion

dustinhood's avatar
dustinhood
Visitor
15 years ago

isStreamStarted() - stream and measured bitrate

I need to programmatically obtain the stream bitrate and measured bandwidth/bitrate of the currently playing video in my app.

It looks like isStreamStarted() may provide this info, can anyone provide me an example of how this is used.

Ideally I need to send this info along with the current position on a timed interval to a web service for tracking and troubleshooting purposes. I have been able to implement the timed interval by making use of isPlaybackPosition(), just not sure how I can get the rest of the info using isStreamStarted().

Any help pointing me in the right direction will be greatly appreciated!

Thanks in advance,

Dustin

3 Replies

  • isStreamStarted() is only going to give you the measured bitrate at the point the video starts, and in my experience, isn't terribly accurate (I've seen the same stream produce wildly different results). You may be able to use the roSystemLog and its bandwidth.minute log type to capture some useful information during playback.
  • Obtaining the bandwidth using bandwidth.minute from roSystemLog worked like a charm.

    Is there any way to get the bitrate of the currently playing item or it's dot representation? I know the playback debugger outputs the the stream bitrate onscreen...