The HTTP Live Streaming format supports variable bitrates, which are described in the m3u8 file.
Is it possible to get the bitrate of the currently playing stream?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you can’t get that information from MPMoviePlayerController
To get the information you want, you could use AVPlayer and AVPlayerItems, which will then create AVAsset items that you can interrogate to discover their properties.
Once you have a AVPlayer, you can find the current AVPlayerItem using
currentItem. From that, you can get theassetproperty.A
AVAssethasAVAssetTracks and this has theformatDescriptionsproperty. Somewhere in there you should find the bitrate.