iOS Developer Library

Developer

AVFoundation Framework Reference AVPlayerItemAccessLogEvent Class Reference

Options
Deployment Target:

On This Page
Language:

AVPlayerItemAccessLogEvent

An AVPlayerItemAccessLogEvent object represents a single item in an AVPlayerItem object’s access log.

An AVPlayerItemAccessLog object provides named properties for accessing the data fields of each log event.

Inheritance


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 4.3 and later.
  • URI URI Property

    The URI of the playback item. (read-only)

    Declaration

    Swift

    var URI: String! { get }

    Objective-C

    @property(nonatomic, readonly) NSString *URI

    Discussion

    The property corresponds to “uri".

    The value of this property is nil if the URI is unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The IP address of the server that was the source of the last delivered media segment. (read-only)

    Declaration

    Swift

    var serverAddress: String! { get }

    Objective-C

    @property(nonatomic, readonly) NSString *serverAddress

    Discussion

    The property corresponds to “s-ip".

    The value of this property is nil if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • A count of changes to the server address over the last uninterrupted period of playback. (read-only)

    Declaration

    Swift

    var numberOfServerAddressChanges: Int { get }

    Objective-C

    @property(nonatomic, readonly) NSInteger numberOfServerAddressChanges

    Discussion

    The property corresponds to “s-ip-changes".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

    See Also

    serverAddress

  • Number of network read requests over WWAN. (read-only)

    Declaration

    Swift

    var mediaRequestsWWAN: Int { get }

    Objective-C

    @property(nonatomic, readonly) NSInteger mediaRequestsWWAN

    Discussion

    The value of the property is negative if unknown.

    Corresponds to “sc-wwan-count”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • The accumulated duration, in seconds, of active network transfer of bytes. (read-only)

    Declaration

    Swift

    var transferDuration: NSTimeInterval { get }

    Objective-C

    @property(nonatomic, readonly) NSTimeInterval transferDuration

    Discussion

    The value of the property is negative if unknown.

    Corresponds to “c-transfer-duration”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • The accumulated number of bytes transferred by the item. (read-only)

    Declaration

    Swift

    var numberOfBytesTransferred: Int64 { get }

    Objective-C

    @property(nonatomic, readonly) long long numberOfBytesTransferred

    Discussion

    The property corresponds to “bytes".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • A count of media read requests from the server to this client. (read-only)

    Declaration

    Swift

    var numberOfMediaRequests: Int { get }

    Objective-C

    @property(nonatomic, readonly) NSInteger numberOfMediaRequests

    Discussion

    For HTTP live streaming, this property contains the count of media requests downloaded from the server. For progressive-style HTTP media downloads, it contains a count of HTTP GET (byte-range) requests for the resource.

    The property corresponds to “sc-count".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 6.0 and later.

  • The date and time at which playback began for this event. (read-only)

    Declaration

    Swift

    var playbackStartDate: NSDate! { get }

    Objective-C

    @property(nonatomic, readonly) NSDate *playbackStartDate

    Discussion

    The property corresponds to “date".

    The value of this property is nil if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • A GUID that identifies the playback session. (read-only)

    Declaration

    Swift

    var playbackSessionID: String! { get }

    Objective-C

    @property(nonatomic, readonly) NSString *playbackSessionID

    Discussion

    This value is used in HTTP requests.

    The property corresponds to “cs-guid".

    The value of this property is nil if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The offset, in seconds, in the playlist where the last uninterrupted period of playback began. (read-only)

    Declaration

    Swift

    var playbackStartOffset: NSTimeInterval { get }

    Objective-C

    @property(nonatomic, readonly) NSTimeInterval playbackStartOffset

    Discussion

    The property corresponds to “c-start-time".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The playback type: live, VOD, or from a file. (read-only)

    Declaration

    Swift

    var playbackType: String! { get }

    Objective-C

    @property(nonatomic, readonly) NSString *playbackType

    Discussion

    If nil is returned the playback type is unknown.

    Corresponds to “s-playback-type”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • The accumulated duration, in seconds, until player item is ready to play. (read-only)

    Declaration

    Swift

    var startupTime: NSTimeInterval { get }

    Objective-C

    @property(nonatomic, readonly) NSTimeInterval startupTime

    Discussion

    The value of the property is negative if unknown.

    Corresponds to “c-startup-time”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • The accumulated duration of the media played, in seconds. (read-only)

    Declaration

    Swift

    var durationWatched: NSTimeInterval { get }

    Objective-C

    @property(nonatomic, readonly) NSTimeInterval durationWatched

    Discussion

    The property corresponds to “c-duration-watched".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The total number of dropped video frames (read-only)

    Declaration

    Swift

    var numberOfDroppedVideoFrames: Int { get }

    Objective-C

    @property(nonatomic, readonly) NSInteger numberOfDroppedVideoFrames

    Discussion

    The property corresponds to “c-frames-dropped".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The total number of playback stalls encountered. (read-only)

    Declaration

    Swift

    var numberOfStalls: Int { get }

    Objective-C

    @property(nonatomic, readonly) NSInteger numberOfStalls

    Discussion

    The property corresponds to “c-stalls".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • A count of the media segments downloaded from the server to this client. (read-only)

    Declaration

    Objective-C

    @property(nonatomic, readonly) NSInteger numberOfSegmentsDownloaded

    Discussion

    The property corresponds to “sc-count".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Availability

    Available in iOS 4.3 and later.

    Deprecated in iOS 7.0.

  • The accumulated duration of the media downloaded, in seconds. (read-only)

    Declaration

    Swift

    var segmentsDownloadedDuration: NSTimeInterval { get }

    Objective-C

    @property(nonatomic, readonly) NSTimeInterval segmentsDownloadedDuration

    Discussion

    The property corresponds to “-duration-downloaded".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The total number of times the download of the segments took too long. (read-only)

    Declaration

    Swift

    var downloadOverdue: Int { get }

    Objective-C

    @property(nonatomic, readonly) NSInteger downloadOverdue

    Discussion

    The value of the property is negative if unknown.

    This property corresponds to “c-overdue”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • Standard deviation of observed segment download bit rates. (read-only)

    Declaration

    Swift

    var observedBitrateStandardDeviation: Double { get }

    Objective-C

    @property(nonatomic, readonly) double observedBitrateStandardDeviation

    Discussion

    The value of the property is negative if unknown.

    Corresponds to “c-observed-bitrate-sd”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • Maximum observed segment download bit rate. (read-only)

    Declaration

    Swift

    var observedMaxBitrate: Double { get }

    Objective-C

    @property(nonatomic, readonly) double observedMaxBitrate

    Discussion

    The value of the property is negative if unknown.

    Corresponds to "c-observed-max-bitrate”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • Minimum observed segment download bit rate. (read-only)

    Declaration

    Swift

    var observedMinBitrate: Double { get }

    Objective-C

    @property(nonatomic, readonly) double observedMinBitrate

    Discussion

    The value of the property is negative if unknown.

    Corresponds to “c-observed-min-bitrate”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • Bandwidth that caused a switch (up or down). (read-only)

    Declaration

    Swift

    var switchBitrate: Double { get }

    Objective-C

    @property(nonatomic, readonly) double switchBitrate

    Discussion

    The value of the property is negative if unknown.

    Corresponds to “c-switch-bitrate”.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.

  • The throughput required to play the stream, as advertised by the server, in bits per second. (read-only)

    Declaration

    Swift

    var indicatedBitrate: Double { get }

    Objective-C

    @property(nonatomic, readonly) double indicatedBitrate

    Discussion

    The property corresponds to “sc-indicated-bitrate".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The empirical throughput across all media downloaded, in bits per second. (read-only)

    Declaration

    Swift

    var observedBitrate: Double { get }

    Objective-C

    @property(nonatomic, readonly) double observedBitrate

    Discussion

    The property corresponds to “c-observed-bitrate".

    The value of this property is negative if unknown.

    This property is not compatible with key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.