Enumeration

MusicKit.PlaybackStates

The playback states of the music player.

Declaration

interface MusicKit.PlaybackStates {
    const string completed;
    const string ended;
    const string loading;
    const string none;
    const string paused;
    const string playing;
    const string seeking;
    const string stalled;
    const string stopped;
    const string waiting;
};

Topics

Enumeration Cases

MusicKit.PlaybackStates.completed

This value indicates that playback of all media items in the queue has ended.

MusicKit.PlaybackStates.ended

This value indicates that playback of the media item has ended.

MusicKit.PlaybackStates.loading

This value indicates that loading of the media item has begun.

MusicKit.PlaybackStates.none

This value indicates that the player has not attempted to start playback.

MusicKit.PlaybackStates.paused

This value indicates that playback has been paused.

MusicKit.PlaybackStates.playing

This value indicates that the player is currently playing media.

MusicKit.PlaybackStates.seeking

This value indicates that the player has started a seek operation.

MusicKit.PlaybackStates.stalled

This value indicates that the player is trying to fetch media data but cannot retrieve the data.

MusicKit.PlaybackStates.stopped

This value indicates that plaback has been stopped.

MusicKit.PlaybackStates.waiting

This value indicates that playback is delayed pending the completion of another operation.

See Also

Media Playback

MusicKit.Player

A media player that represents the media player for a MusicKit instance.

MusicKit.PlaybackBitrate

The playback bit rate of the music player.

MusicKit.PlayerRepeatMode

Possible values for the repeat mode for the music player.

MusicKit.PlayerShuffleMode

The shuffle mode for the music player.