Enumeration

MPMusicPlaybackState

The music player playback state modes.

Declaration

typedef enum MPMusicPlaybackState : NSInteger {
    ...
} MPMusicPlaybackState;

Overview

You determine a music player’s state by checking the playbackState property. Depending on the property’s value, you can update your application’s user interface or take other appropriate action.

Topics

Constants

MPMusicPlaybackStateStopped

The music player is stopped.

MPMusicPlaybackStatePlaying

The music player is playing.

MPMusicPlaybackStatePaused

The music player is paused.

MPMusicPlaybackStateInterrupted

The music player has been interrupted, such as by an incoming phone call.

MPMusicPlaybackStateSeekingForward

The music player is seeking forward.

MPMusicPlaybackStateSeekingBackward

The music player is seeking backward.

See Also

Managing Playback Mode and State

nowPlayingItem

The currently-playing media item, or the media item, within a queue, that you have designated to begin playback with.

indexOfNowPlayingItem

The index of the now playing item in the current playback queue.

playbackState

The current playback state of the music player.

repeatMode

The current repeat mode of the music player.

shuffleMode

The current shuffle mode of the music player.

MPMusicRepeatMode

The repeat modes for the media player.

MPMusicShuffleMode

The shuffle modes for the media player.

volume

The audio playback volume for the music player, in the range from 0.0 (silent) through 1.0 (maximum volume).

Deprecated