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

    MediaPlayer API to query bitrate of single bitrate stream

    ScottKell3

      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