Class

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.

Topics

Getting Server-Related Log Events

var uri: String?

The URI of the playback item.

var serverAddress: String?

The IP address of the server that was the source of the last delivered media segment.

var numberOfServerAddressChanges: Int

A count of changes to the server address over the last uninterrupted period of playback.

var mediaRequestsWWAN: Int

Number of network read requests over WWAN.

var transferDuration: TimeInterval

The accumulated duration, in seconds, of active network transfer of bytes.

var numberOfBytesTransferred: Int64

The accumulated number of bytes transferred by the item.

var numberOfMediaRequests: Int

A count of media read requests from the server to this client.

Getting Playback-Related Log Events

var playbackStartDate: Date?

The date and time at which playback began for this event.

var playbackSessionID: String?

A GUID that identifies the playback session.

var playbackStartOffset: TimeInterval

The offset, in seconds, in the playlist where the last uninterrupted period of playback began.

var playbackType: String?

The playback type: live, VOD, or from a file.

var startupTime: TimeInterval

The accumulated duration, in seconds, until player item is ready to play.

var durationWatched: TimeInterval

The accumulated duration of the media played, in seconds.

var numberOfDroppedVideoFrames: Int

The total number of dropped video frames

var numberOfStalls: Int

The total number of playback stalls encountered.

var segmentsDownloadedDuration: TimeInterval

The accumulated duration of the media downloaded, in seconds.

var downloadOverdue: Int

The total number of times the download of the segments took too long.

Getting Bit Rate Log Events

The observed properties measure actual network download performance and indicated properties measure the bit rate of the media.

var observedBitrateStandardDeviation: Double

Standard deviation of observed segment download bit rates.

var observedMaxBitrate: Double

Maximum observed segment download bit rate.

var observedMinBitrate: Double

Minimum observed segment download bit rate.

var switchBitrate: Double

Bandwidth that caused a switch (up or down).

var indicatedBitrate: Double

The throughput, in bits per second, required to play the stream, as advertised by the server.

var observedBitrate: Double

The empirical throughput, in bits per second, across all media downloaded.

var averageAudioBitrate: Double

The audio track’s average bit rate, in bits per second.

var averageVideoBitrate: Double

The video track’s average bit rate, in bits per second.

var indicatedAverageBitrate: Double

The average throughput, in bits per second, required to play the stream, as advertised by the server.

Relationships

Inherits From

See Also

Accessing Logs

func accessLog()

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

func errorLog()

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

class AVPlayerItemAccessLog

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

class AVPlayerItemErrorLog

The error log associated with a player item.

class AVPlayerItemErrorLogEvent

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