How to find the current bit rate of AVPlayer

I am trying to get the bit rate at which AVPlayer plays a video stream. I tried with the observed bit rateproperty AVPlayerItemAccessLogEvent, but it gives a very high value. After studying further use of the property, Observed-bit-rateI realized that this property shows a value download rate of a segment. I need to know the bit rate at which the player plays the stream.

The graph below shows the observed bit vs The indicated bit rate for the LIVE stream. enter image description here

Please give your suggestion on this issue.

I tried the following link but no luck:

stack overflow .

MPMoviePlayerController MovieAccessLogEvent - inflated observable bitrate .

+3
1

observedBitrate. .

indicatedBitrate , . , HLS. , , , indicatedBitrate -1.

, -, indicatedBitrate - .

, -, - AVPlayerItemAccessLogEvent , :

numberOfBitsTransferred = (numberOfBytesTransferred * 8)
numberOfBitsTransferred / segmentsDownloadedDuration

, , , . .

+4

All Articles