AVPlayer current bit rate

Hi,

I am trying to fetch bit rate at which the AVPlayer is playing the video stream . I tried with observed bit rate property of AVPlayerItemAccessLogEvent , but it gives very high value .After exploring further on Observed-bit-rate property I understood that this property shows the value of download rate of a segment.I need to

know the bit rate at which the player is playing the stream.Please guide me .


I have attached graph for Observed bit vs Indicated bit rate in the below link

https://www.dropbox.com/s/3ds98kon3zr5its/bitrate.pdf?dl=0


Kindly give your suggestion on this issue.

Indeed, the observedBitrate property indicates the aggregate rate at which content is being downloaded. The property that shows which bitrate in the manifest is being currently played is the indicatedBitrate property.

Thanks for your response , I am trying to calculate bitrate being currently played using below formula

numberOfBitsTransferred = (numberOfBytesTransferred * 8) numberOfBitsTransferred / segmentsDownloadedDuration.

whereas I am using avplayer access log's - AVPlayerItemAccessLogEvent to retreive numberOfBytesTransferred & segmentsDownloadedDuration.

Can you please confirm me whether this approach is correct to calculate the bitrate being currently played , as the stream that does not have multiple bitrate variants, and there's only one bitrate variant available, the value of

indicatedBitrate
is
-1
.
AVPlayer current bit rate
 
 
Q