iOS Developer Library

Developer

AVFoundation Framework Reference AVPlayerItemAccessLog Class Reference

Options
Deployment Target:

On This Page
Language:

AVPlayerItemAccessLog

Inheritance


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 4.3 and later.

You use an AVPlayerItemAccessLog object to retrieve the access log associated with an AVPlayerItem object.

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.

  • events events Property

    A chronologically ordered array of AVPlayerItemAccessLogEvent objects. (read-only)

    Declaration

    Swift

    var events: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *events

    Discussion

    The array contains AVPlayerItemAccessLogEvent objects that represent the chronological sequence of events contained in the access log.

    This property is not observable using key-value observing.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

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

    Declaration

    Swift

    func extendedLogData() -> NSData!

    Objective-C

    - (NSData *)extendedLogData

    Return Value

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

    Discussion

    This method converts the web server access log into a textual format that conforms to the W3C Extended Log File Format for web server log files. For more information, see http://www.w3.org/pub/WWW/TR/WD-logfile.html.

    You can generate a string suitable for console output using:

    • [[NSString alloc] initWithData:[myLog extendedLogData] encoding:[myLog extendedLogDataStringEncoding]]

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.

  • The string encoding of the extended log data. (read-only)

    Declaration

    Swift

    var extendedLogDataStringEncoding: UInt { get }

    Objective-C

    @property(nonatomic, readonly) NSStringEncoding extendedLogDataStringEncoding

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.3 and later.