    struct MediaPlaybackTrait

This trait provides an interface for controlling media playback (play, pause, and so forth) on a
media device such as a TV, set-top box, or smart speaker.
- `


  ### [supportedEventTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV014supportedEventC0Say0aB3SDK0I0_pXpGvpZ)


  ` List of the event types that are supported by `MediaPlaybackTrait`.

  #### Declaration

  Swift

      static let supportedEventTypes: [any Event.Type]

- `


  ### [supportedCommandTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV016supportedCommandC0Say0aB3SDK0I0_pXpGvpZ)


  ` List of the commands that are supported by `MediaPlaybackTrait`.

  #### Declaration

  Swift

      static let supportedCommandTypes: [any Command.Type]

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


  ### [metadata](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV8metadata0aB3SDK0G8MetadataVvp)


  ` Metadata about this `Trait`.

  #### Declaration

  Swift

      let metadata: TraitMetadata

- `


  ### [attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV10attributesAE10AttributesVvp)


  ` List of attributes for the `MediaPlaybackTrait`.

  #### Declaration

  Swift

      let attributes: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/Attributes.html

- `


  ### [init(decoder:interactionProxy:metadata:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV7decoder16interactionProxy8metadataAE0aB3SDK0G7DecoderV_AI011InteractionJ0_pSgAI0G8MetadataVtKcfc)


  ` Creates a new Trait instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Trait. |
  | ` interactionProxy ` | Proxy to the Interaction Client. |
  | ` metadata ` | Metadata about this Trait. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV6encode4withy0aB3SDK0G7EncoderC_tKF)


  ` Writes this object to the given `TraitEncoder`.
  Throws `HomeError.encodingFailed` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [forceRead()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV9forceReadyyYaKF)


  ` This API provides the ability to invalidate state retrieved through subscriptions to the
  target device in the cases where state is not being reported correctly, either intentionally
  (e.g attributes in Matter traits with the "C" quality) or unintentionally due to poor
  implementations.

  When successful, this API will result in a forced read of the convening scope as specified by
  the sub-class and return the result through existing Trait subscriptions if present and
  active.

  This API is to be used sparingly as it can impact the performance and battery life of the
  target device. As such, this API may be throttled by the platform.
  Callers SHALL be prepared to deal with `HomeError`s thrown by this call.

  #### Declaration

  Swift

      func forceRead() async throws

- `


  ### [Attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/Attributes.html)


  ` Attributes for the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait.html`.

  #### Declaration

  Swift

      struct Attributes

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV2eeoiySbAE_AEtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV4hash4intoys6HasherVz_tF)


  ` Hashes the essential components of this value by feeding them into the
  given hasher.

  Implement this method to conform to the `Hashable` protocol. The
  components used for hashing must be the same as the components compared
  in your type's `==` operator implementation. Call `hasher.combine(_:)`
  with each of these components.
  Important

  In your implementation of `hash(into:)`,
  don't call `finalize()` on the `hasher` instance provided,
  or replace it with a different instance.
  Doing so may become a compile-time error in the future.

  #### Declaration

  Swift

      func hash(into hasher: inout Hasher)

- `


  ### [PlaybackPositionStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/PlaybackPositionStruct.html)


  ` A playback position within a media stream.

  #### Declaration

  Swift

      struct PlaybackPositionStruct

- `


  ### [TrackAttributesStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/TrackAttributesStruct.html)


  ` Attributes of a track.

  #### Declaration

  Swift

      struct TrackAttributesStruct

- `


  ### [TrackStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/TrackStruct.html)


  ` A track.

  #### Declaration

  Swift

      struct TrackStruct

- `


  ### [StateChangedEvent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/StateChangedEvent.html)


  ` State changed event.

  #### Declaration

  Swift

      struct StateChangedEvent

- `


  ### [supportsPlayCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV19supportsPlayCommandSbvp)


  ` Whether the device supports the `play` command for this trait.

  #### Declaration

  Swift

      var supportsPlayCommand: Bool { get }

- `


  ### [play()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV4playAE11PlayCommandV8ResponseVyYaKF)


  ` Play the current media.

  #### Declaration

  Swift

      func play() async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.PlayCommandResponse

  #### Return Value

  The outcome of the `Play` command.
- `


  ### [playBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV13playBatchable0aB3SDK0I7CommandVyAE04PlayK0V8ResponseVGyKF)


  ` The batchable version of play command above.
  See also
  play

  #### Declaration

  Swift

      func playBatchable() throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.PlayCommandResponse>

- `


  ### [supportsPauseCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV20supportsPauseCommandSbvp)


  ` Whether the device supports the `pause` command for this trait.

  #### Declaration

  Swift

      var supportsPauseCommand: Bool { get }

- `


  ### [pause()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV5pauseAE12PauseCommandV8ResponseVyYaKF)


  ` Pause the current media.

  #### Declaration

  Swift

      func pause() async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.PauseCommandResponse

  #### Return Value

  The outcome of the `Pause` command.
- `


  ### [pauseBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV14pauseBatchable0aB3SDK0I7CommandVyAE05PauseK0V8ResponseVGyKF)


  ` The batchable version of pause command above.
  See also
  pause

  #### Declaration

  Swift

      func pauseBatchable() throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.PauseCommandResponse>

- `


  ### [supportsStopCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV19supportsStopCommandSbvp)


  ` Whether the device supports the `stop` command for this trait.

  #### Declaration

  Swift

      var supportsStopCommand: Bool { get }

- `


  ### [stop()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV4stopAE11StopCommandV8ResponseVyYaKF)


  ` Stop playing the current media.

  #### Declaration

  Swift

      func stop() async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.StopCommandResponse

  #### Return Value

  The outcome of the `Stop` command.
- `


  ### [stopBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV13stopBatchable0aB3SDK0I7CommandVyAE04StopK0V8ResponseVGyKF)


  ` The batchable version of stop command above.
  See also
  stop

  #### Declaration

  Swift

      func stopBatchable() throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.StopCommandResponse>

- `


  ### [supportsStartOverCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV24supportsStartOverCommandSbvp)


  ` Whether the device supports the `startOver` command for this trait.

  #### Declaration

  Swift

      var supportsStartOverCommand: Bool { get }

- `


  ### [startOver()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV9startOverAE05StartI7CommandV8ResponseVyYaKF)


  ` Start over from the beginning of the current media.

  #### Declaration

  Swift

      func startOver() async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.StartOverCommandResponse

  #### Return Value

  The outcome of the `StartOver` command.
- `


  ### [startOverBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV18startOverBatchable0aB3SDK0J7CommandVyAE05StartiL0V8ResponseVGyKF)


  ` The batchable version of startOver command above.
  See also
  startOver

  #### Declaration

  Swift

      func startOverBatchable() throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.StartOverCommandResponse>

- `


  ### [supportsPreviousCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV23supportsPreviousCommandSbvp)


  ` Whether the device supports the `previous` command for this trait.

  #### Declaration

  Swift

      var supportsPreviousCommand: Bool { get }

- `


  ### [previous()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV8previousAE15PreviousCommandV8ResponseVyYaKF)


  ` Move to the previous item in the current media.

  #### Declaration

  Swift

      func previous() async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.PreviousCommandResponse

  #### Return Value

  The outcome of the `Previous` command.
- `


  ### [previousBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV17previousBatchable0aB3SDK0I7CommandVyAE08PreviousK0V8ResponseVGyKF)


  ` The batchable version of previous command above.
  See also
  previous

  #### Declaration

  Swift

      func previousBatchable() throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.PreviousCommandResponse>

- `


  ### [supportsNextCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV19supportsNextCommandSbvp)


  ` Whether the device supports the `next` command for this trait.

  #### Declaration

  Swift

      var supportsNextCommand: Bool { get }

- `


  ### [next()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV4nextAE11NextCommandV8ResponseVyYaKF)


  ` Move to the next item in the media.

  #### Declaration

  Swift

      func next() async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.NextCommandResponse

  #### Return Value

  The outcome of the `Next` command.
- `


  ### [nextBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV13nextBatchable0aB3SDK0I7CommandVyAE04NextK0V8ResponseVGyKF)


  ` The batchable version of next command above.
  See also
  next

  #### Declaration

  Swift

      func nextBatchable() throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.NextCommandResponse>

- `


  ### [supportsRewindCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV21supportsRewindCommandSbvp)


  ` Whether the device supports the `rewind` command for this trait.

  #### Declaration

  Swift

      var supportsRewindCommand: Bool { get }

- `


  ### [rewind(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV6rewind20optionalArgsProviderAE13RewindCommandV8ResponseVyAI08OptionalJ0CYbcSg_tYaKF)


  ` Rewind the current media.

  #### Declaration

  Swift

      func rewind(optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.RewindCommand.OptionalArgs) -> Void)? = nil) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.RewindCommandResponse

  #### Return Value

  The outcome of the `Rewind` command.
- `


  ### [rewindBatchable(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV15rewindBatchable20optionalArgsProvider0aB3SDK0I7CommandVyAE06RewindN0V8ResponseVGyAL08OptionalK0CcSg_tKF)


  ` The batchable version of rewind command above.
  See also
  rewind

  #### Declaration

  Swift

      func rewindBatchable(optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.RewindCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.RewindCommandResponse>

- `


  ### [supportsFastForwardCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV26supportsFastForwardCommandSbvp)


  ` Whether the device supports the `fastForward` command for this trait.

  #### Declaration

  Swift

      var supportsFastForwardCommand: Bool { get }

- `


  ### [fastForward(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV11fastForward20optionalArgsProviderAE04FastI7CommandV8ResponseVyAI08OptionalK0CYbcSg_tYaKF)


  ` Fast forward the current media.

  #### Declaration

  Swift

      func fastForward(optionalArgsProvider: (@Sendable (https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.FastForwardCommand.OptionalArgs) -> Void)? = nil) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.FastForwardCommandResponse

  #### Return Value

  The outcome of the `FastForward` command.
- `


  ### [fastForwardBatchable(optionalArgsProvider:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV20fastForwardBatchable20optionalArgsProvider0aB3SDK0J7CommandVyAE04FastiO0V8ResponseVGyAL08OptionalL0CcSg_tKF)


  ` The batchable version of fastForward command above.
  See also
  fastForward

  #### Declaration

  Swift

      func fastForwardBatchable(optionalArgsProvider: ((https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.FastForwardCommand.OptionalArgs) -> Void)? = nil) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.FastForwardCommandResponse>

- `


  ### [supportsSkipForwardCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV26supportsSkipForwardCommandSbvp)


  ` Whether the device supports the `skipForward` command for this trait.

  #### Declaration

  Swift

      var supportsSkipForwardCommand: Bool { get }

- `


  ### [skipForward(deltaPositionMilliseconds:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV11skipForward25deltaPositionMillisecondsAE04SkipI7CommandV8ResponseVs6UInt64V_tYaKF)


  ` Skip forward by a specified amount of time within the current media.

  #### Declaration

  Swift

      func skipForward(deltaPositionMilliseconds: UInt64) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.SkipForwardCommandResponse

  #### Parameters

  |---|---|
  | ` deltaPositionMilliseconds ` | The duration of the time span to skip forward in the media, in milliseconds. |

  #### Return Value

  The outcome of the `SkipForward` command.
- `


  ### [skipForwardBatchable(deltaPositionMilliseconds:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV20skipForwardBatchable25deltaPositionMilliseconds0aB3SDK0J7CommandVyAE04SkipiO0V8ResponseVGs6UInt64V_tKF)


  ` The batchable version of skipForward command above.
  See also
  skipForward

  #### Declaration

  Swift

      func skipForwardBatchable(deltaPositionMilliseconds: UInt64) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.SkipForwardCommandResponse>

- `


  ### [supportsSkipBackwardCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV27supportsSkipBackwardCommandSbvp)


  ` Whether the device supports the `skipBackward` command for this trait.

  #### Declaration

  Swift

      var supportsSkipBackwardCommand: Bool { get }

- `


  ### [skipBackward(deltaPositionMilliseconds:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV12skipBackward25deltaPositionMillisecondsAE04SkipI7CommandV8ResponseVs6UInt64V_tYaKF)


  ` Skip backward by a specified amount of time within the current media.

  #### Declaration

  Swift

      func skipBackward(deltaPositionMilliseconds: UInt64) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.SkipBackwardCommandResponse

  #### Parameters

  |---|---|
  | ` deltaPositionMilliseconds ` | The duration of the time span to skip backward in the media, in milliseconds. |

  #### Return Value

  The outcome of the `SkipBackward` command.
- `


  ### [skipBackwardBatchable(deltaPositionMilliseconds:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV21skipBackwardBatchable25deltaPositionMilliseconds0aB3SDK0J7CommandVyAE04SkipiO0V8ResponseVGs6UInt64V_tKF)


  ` The batchable version of skipBackward command above.
  See also
  skipBackward

  #### Declaration

  Swift

      func skipBackwardBatchable(deltaPositionMilliseconds: UInt64) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.SkipBackwardCommandResponse>

- `


  ### [supportsSeekCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV19supportsSeekCommandSbvp)


  ` Whether the device supports the `seek` command for this trait.

  #### Declaration

  Swift

      var supportsSeekCommand: Bool { get }

- `


  ### [seek(position:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV4seek8positionAE11SeekCommandV8ResponseVs6UInt64V_tYaKF)


  ` Change the playback position in the current media to the specified position.

  #### Declaration

  Swift

      func seek(position: UInt64) async throws -> https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.SeekCommandResponse

  #### Parameters

  |---|---|
  | ` position ` | The position to seek to, relative to the start of the media, in milliseconds. |

  #### Return Value

  The outcome of the `Seek` command.
- `


  ### [seekBatchable(position:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV13seekBatchable8position0aB3SDK0I7CommandVyAE04SeekL0V8ResponseVGs6UInt64V_tKF)


  ` The batchable version of seek command above.
  See also
  seek

  #### Declaration

  Swift

      func seekBatchable(position: UInt64) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.MediaPlaybackTrait.SeekCommandResponse>

- `


  ### [supportsActivateAudioTrackCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV33supportsActivateAudioTrackCommandSbvp)


  ` Whether the device supports the `activateAudioTrack` command for this trait.

  #### Declaration

  Swift

      var supportsActivateAudioTrackCommand: Bool { get }

- `


  ### [activateAudioTrack(trackID:audioOutputIndex:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV18activateAudioTrack7trackID16audioOutputIndexySS_s5UInt8VtYaKF)


  ` Activate an audio track.

  #### Declaration

  Swift

      func activateAudioTrack(trackID: String, audioOutputIndex: UInt8) async throws

  #### Parameters

  |---|---|
  | ` trackID ` | Track ID. |
  | ` audioOutputIndex ` | Audio output index. |

- `


  ### [activateAudioTrackBatchable(trackID:audioOutputIndex:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV27activateAudioTrackBatchable7trackID16audioOutputIndex0aB3SDK0K7CommandVyytGSS_s5UInt8VtKF)


  ` The batchable version of activateAudioTrack command above.
  See also
  activateAudioTrack

  #### Declaration

  Swift

      func activateAudioTrackBatchable(trackID: String, audioOutputIndex: UInt8) throws -> BatchableCommand<Void>

- `


  ### [supportsActivateTextTrackCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV32supportsActivateTextTrackCommandSbvp)


  ` Whether the device supports the `activateTextTrack` command for this trait.

  #### Declaration

  Swift

      var supportsActivateTextTrackCommand: Bool { get }

- `


  ### [activateTextTrack(trackID:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV17activateTextTrack7trackIDySS_tYaKF)


  ` Activate a text track.

  #### Declaration

  Swift

      func activateTextTrack(trackID: String) async throws

  #### Parameters

  |---|---|
  | ` trackID ` | Track ID. |

- `


  ### [activateTextTrackBatchable(trackID:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV26activateTextTrackBatchable7trackID0aB3SDK0K7CommandVyytGSS_tKF)


  ` The batchable version of activateTextTrack command above.
  See also
  activateTextTrack

  #### Declaration

  Swift

      func activateTextTrackBatchable(trackID: String) throws -> BatchableCommand<Void>

- `


  ### [supportsDeactivateTextTrackCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV34supportsDeactivateTextTrackCommandSbvp)


  ` Whether the device supports the `deactivateTextTrack` command for this trait.

  #### Declaration

  Swift

      var supportsDeactivateTextTrackCommand: Bool { get }

- `


  ### [deactivateTextTrack()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV19deactivateTextTrackyyYaKF)


  ` Deactivate the current text track.

  #### Declaration

  Swift

      func deactivateTextTrack() async throws

- `


  ### [deactivateTextTrackBatchable()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV28deactivateTextTrackBatchable0aB3SDK0K7CommandVyytGyKF)


  ` The batchable version of deactivateTextTrack command above.
  See also
  deactivateTextTrack

  #### Declaration

  Swift

      func deactivateTextTrackBatchable() throws -> BatchableCommand<Void>

- `


  ### [CharacteristicEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/CharacteristicEnum.html)


  ` Track characteristics.

  #### Declaration

  Swift

      enum CharacteristicEnum

- `


  ### [PlaybackStateEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/PlaybackStateEnum.html)


  ` Playback states.

  #### Declaration

  Swift

      enum PlaybackStateEnum

- `


  ### [StatusEnum](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/StatusEnum.html)


  ` Playback statuses.

  #### Declaration

  Swift

      enum StatusEnum

- `


  ### [Feature](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/Feature.html)


  ` The MediaPlayback cluster FeatureMap.

  #### Declaration

  Swift

      struct Feature