iOS Developer Library

Developer

MediaPlayer Framework Reference MPChangePlaybackRateCommandEvent Class Reference

Options
Deployment Target:

On This Page
Language:

MPChangePlaybackRateCommandEvent

The MPChangePlaybackRateCommandEvent class provides the playback rate for a media item when it is requested from an external media player.

Inheritance


Conforms To


Import Statement


import MediaPlayer @import MediaPlayer;

Availability


Available in iOS 7.1 and later.
  • The chosen playback rate for the command event. (read-only)

    Declaration

    Swift

    var playbackRate: Float { get }

    Objective-C

    @property(nonatomic, readonly) float playbackRate

    Discussion

    The playbackRate property is equal to a value stored in the supportedPlaybackRates array.

    Import Statement

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later.