Instance Property

changePlaybackRateCommand

The command object for changing the playback rate of the current media item.

Declaration

var changePlaybackRateCommand: MPChangePlaybackRateCommand { get }

Discussion

Use the object in this property to register your app’s handler for changing the playback rate of the current track. In your handler, change the playback rate to the new value. The current playback rate cannot be negative. You can disable the command if your app does not support it.

See Also

Navigating a Track’s Contents

var seekBackwardCommand: MPRemoteCommand

The command object for seeking backward through a single media item.

var seekForwardCommand: MPRemoteCommand

The command object for seeking forward through a single media item.

var skipBackwardCommand: MPSkipIntervalCommand

The command object for playing a previous point in a media item.

var skipForwardCommand: MPSkipIntervalCommand

The command object for playing a future point in a media item.

var changePlaybackPositionCommand: MPChangePlaybackPositionCommand

The command object for changing the playback position in a media item.