iOS Developer Library

Developer

MediaPlayer Framework Reference MPMovieAccessLog Class Reference

Options
Deployment Target:

On This Page
Language:

MPMovieAccessLog

Inherits From


Conforms To


Import Statement


Swift

import MediaPlayer

Objective-C

@import MediaPlayer;

Availability


Available in iOS 4.3 and later

A movie access log accumulates key metrics about network playback for an associated movie player that is playing streamed content. The log presents these metrics as a collection of MPMovieAccessLogEvent instances and also makes it available in a textual format. A movie access log describes one uninterrupted period of playback. A movie player (an instance of the MPMoviePlayerController class) can access this log from its setAccessLog: property.

All movie access log properties are read-only.

  • A textual version of the web server access log for the associated movie player.

    Declaration

    Swift

    var extendedLogData: NSData! { get }

    Objective-C

    @property(nonatomic, readonly) NSData *extendedLogData

    Discussion

    The web server access log in 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.

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 4.3 and later

  • The string encoding for the extendedLogData property.

    Declaration

    Swift

    var extendedLogDataStringEncoding: UInt { get }

    Objective-C

    @property(nonatomic, readonly) NSStringEncoding extendedLogDataStringEncoding

    Discussion

    For possible string encodings, see String_Encodings.

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 4.3 and later

  • events events Property

    The events in the movie access log.

    Declaration

    Swift

    var events: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *events

    Discussion

    An ordered collection of MPMovieAccessLogEvent instances that represent the chronological sequence of events in the movie access log.

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 4.3 and later