Type Property

MPMoviePlayerPlaybackStateDidChange

Posted when a movie player’s playback state has changed. There is no userInfo dictionary.

Declaration

static let MPMoviePlayerPlaybackStateDidChange: NSNotification.Name

Discussion

Playback state can change programmatically (see MPMediaPlayback) or by user interaction. To retrieve the playback state of a movie player, access its playbackState property. The movie player whose state has changed is available as the object associated with the notification.

See Also

Notifications

static let MPMoviePlayerDidEnterFullscreen: NSNotification.Name

Posted when a movie player has entered full-screen mode. There is no userInfo dictionary.

Deprecated
static let MPMoviePlayerDidExitFullscreen: NSNotification.Name

Posted when a movie player has exited full-screen mode. There is no userInfo dictionary.

Deprecated
static let MPMoviePlayerIsAirPlayVideoActiveDidChange: NSNotification.Name

Posted when a movie player has started or ended playing a movie via AirPlay. There is no userInfo dictionary.

Deprecated
static let MPMoviePlayerLoadStateDidChange: NSNotification.Name

Posted when a movie player’s network buffering state has changed. There is no userInfo dictionary.

Deprecated
static let MPMoviePlayerNowPlayingMovieDidChange: NSNotification.Name

Posted when the currently playing movie has changed. There is no userInfo dictionary.

Deprecated
static let MPMoviePlayerPlaybackDidFinish: NSNotification.Name

Posted when a movie has finished playing. The userInfo dictionary of this notification contains the MPMoviePlayerPlaybackDidFinishReasonUserInfoKey key, which indicates the reason that playback finished. This notification is also sent when playback fails because of an error.

Deprecated
static let MPMoviePlayerReadyForDisplayDidChange: NSNotification.Name

Posted when the ready for display state changes.

Deprecated
static let MPMoviePlayerScalingModeDidChange: NSNotification.Name

Posted when the scaling mode of a movie player has changed. There is no userInfo dictionary.

Deprecated
static let MPMoviePlayerThumbnailImageRequestDidFinish: NSNotification.Name

Posted when a request to capture a thumbnail from a movie has finished whether the request succeeded or failed. Upon successful capture of a thumbnail, the userInfo dictionary contains values for the following keys:

Deprecated
static let MPMoviePlayerTimedMetadataUpdated: NSNotification.Name

Posted when new timed metadata arrives.

Deprecated
static let MPMoviePlayerWillEnterFullscreen: NSNotification.Name

Posted when a movie player is about to enter full-screen mode. The userInfo dictionary contains keys whose values describe the transition animation used to enter full-screen mode. See Fullscreen Notification Keys.

Deprecated
static let MPMoviePlayerWillExitFullscreen: NSNotification.Name

Posted when a movie player is about to exit full-screen mode. The userInfo dictionary contains keys whose values describe the transition animation used to exit full-screen mode. See Fullscreen Notification Keys.

Deprecated
static let MPMovieDurationAvailable: NSNotification.Name

Posted when the duration of a movie has been determined. There is no userInfo dictionary.

Deprecated
static let MPMovieMediaTypesAvailable: NSNotification.Name

Posted when the available media types in a movie are determined. There is no userInfo dictionary.

Deprecated
static let MPMovieNaturalSizeAvailable: NSNotification.Name

Posted when the natural frame size of a movie is first determined or subsequently changes. There is no userInfo dictionary.

Deprecated
static let MPMovieSourceTypeAvailable: NSNotification.Name

Posted when the source type of a movie was previously unknown and is newly available. There is no userInfo dictionary.

Deprecated

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