An object used to retrieve the access log associated with a player item.


class AVPlayerItemAccessLog : NSObject


An AVPlayerItemAccessLog object accumulates key metrics about network playback and presents them as a collection of AVPlayerItemAccessLogEvent instances. Each event instance collates the data that relates to each uninterrupted period of playback.


Accessing Log Data

var events: [AVPlayerItemAccessLogEvent]

A chronologically ordered array of player item access log events.

func extendedLogData() -> Data?

Returns a serialized representation of the access log in the Extended Log File Format.

var extendedLogDataStringEncoding: UInt

The string encoding of the extended log data.


Inherits From

See Also

Accessing Logs

func accessLog() -> AVPlayerItemAccessLog?

Returns an object that represents a snapshot of the network access log.

func errorLog() -> AVPlayerItemErrorLog?

Returns an object that represents a snapshot of the error log.

class AVPlayerItemAccessLogEvent

A single entry in a player item's access log.

class AVPlayerItemErrorLog

The error log associated with a player item.

class AVPlayerItemErrorLogEvent

A single item in a player item's error log.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software