I am using AVAudioPlayer to stream and playback MP3 audio, and would like to obtain the bit rate of the MP3 audio. There is a "settings" property of AVAudioPlayer in which there is a key "AVEncoderBitRateKey" identifying the audio bit rate. However, the value of bit rate I saw from AVEncoderBitRateKey is 0 (AVEncoderBitRateKey = 0). Is there something wrong? I can see the sample rate with the key AVSampleRateKey though (e.g. AVSampleRateKey = 32000).
So how can I obtain the MP3 bit rate programmatically in iOS? Thanks in advance.