iOS Developer Library

Developer

Media Player Framework Reference MPChangePlaybackRateCommand Class Reference

Options
Deployment Target:

On This Page
Language:

MPChangePlaybackRateCommand

The MPChangePlaybackRateCommand class provides additional information for the playback commands described in the MPRemoteCommandCenter class. Apps can change the current playback rate of a media item to one of the supported rates defined by the supportedPlaybackRates property.

  • The supported playback rates for a media item.

    Declaration

    Swift

    var supportedPlaybackRates: [NSNumber]

    Objective-C

    @property(nonatomic, copy) NSArray <NSNumber *> *supportedPlaybackRates

    Discussion

    Contains an array of NSNumber objects. Each object is of type float and designates a supported playback rate. For example, a value of 2.0 would indicate the media item plays at double speed. Negative values are not supported.

    Availability

    Available in iOS 7.1 and later.