How to report starting indicated bitrate?

Hello,


I am building off of the metrics in PerfMeasurements.swift in the HLSCatalog sample project for iOS. One thing I'd like to know (and report back) is which indicated bitrate the player starts with. I added a call to look at the accessLog for the indicatedBitrate in the rateChanged method (that currently reports startup time). This will work _sometimes_, as sometimes there seems to be an entry in the accessLog at this point and sometimes there isn't. Is there a reliable way to check for this? A notification I can observe or something? Is there a different approach I should take?


Thanks!


--Andy

Replies

Just RTFM'ed a bit ( here: https://developer.apple.com/documentation/avfoundation/avplayeritem ) and it looks like there's an AVPlayerItemNewAccessLogEntry notification that looks like it's exactly what I want. Docs are here: https://developer.apple.com/documentation/foundation/nsnotification/name/1388553-avplayeritemnewaccesslogentry.

This was also discussed in the WWDC talk on HLS this year.