Contents

changePlaybackRate(supported:_:)

Creates a command that changes the playback rate of the media.

Declaration

static func changePlaybackRate(supported: [Float], _ action: @escaping (Float) async throws -> Void) -> MediaCommand

Parameters

  • supported:

    An array of playback rates your app can play at.

  • action:

    The closure the system calls to change the playback rate.

See Also

Changing playback modes