Instance Property

nowPlayingItem

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

Declaration

@property(nonatomic, copy) MPMediaItem *nowPlayingItem;

Discussion

To specify that playback should begin at a particular media item in the playback queue, set this property to that item while the music player is stopped or paused.

If no media item is playing or designated to play, this property’s value is nil.

If you use the system music player and the user plays an item from another library using Home Sharing, the value of this property is nil.

See Also

Managing Playback Mode and State

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.

MPMusicPlaybackState

The music player playback state modes.

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