Skip navigation
Currently Being Moderated

MediaPlayer API to query bitrate of single bitrate stream

Apr 5, 2012 4:43 AM

I am able to query the bitrates of a dynamic stream usinfg the MediaPlayer API, however I can't seem to find an API to query the bitrate of a non-dynamic stream.

 

For example for dynamic I can do this:

 

if (mediaPlayer.isDynamicStream == true)

{

     var msg:String = "Bitrates: ";

     for (i = 0; i <= mediaPlayer.maxAllowedDynamicStreamIndex; i++) {

          msg = msg + mediaPlayer.getBitrateForDynamicStreamIndex(i) + " kbps, ";

     }

     trace(msg);

}

 

However, this API doesn't work if isDYnamicStream is false.

Is there an equivalent way to get the bitrate?

 

Thanks,

 

Scott

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points