2 Replies Latest reply on Apr 5, 2012 7:41 AM by ScottKell3

    MediaPlayer API to query bitrate of single bitrate stream

    ScottKell3 Level 1

      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, ";





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

      Is there an equivalent way to get the bitrate?