iOS Developer Library

Developer

MediaPlayer Framework Reference MPChangePlaybackRateCommandEvent Class Reference

Options
Deployment Target:

On This Page
Language:

MPChangePlaybackRateCommandEvent

Inherits From


Conforms To


Import Statement


Swift

import MediaPlayer

Objective-C

@import MediaPlayer;

Availability


Available in iOS 7.1 and later

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

  • 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

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later