AVPlayerItemAccessLogEvent has a lot of useful properties to help us check for the playback log events.
AVPlayerItemAccessLogEvent
A single entry in a player item's access log.
Overview
This object provides named properties for accessing the data fields of each log event. Each event is a single entry in an AVPlayerItem object's access log.
Note
The properties of this class are not key-value observable.
Reference: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent