# StatusEnum

    enum StatusEnum

Playback statuses.
- `


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


  ` Command succeeded.

  #### Declaration

  Swift

      case success

- `


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


  ` Command failed: Requested playback command is invalid in the current playback state.

  #### Declaration

  Swift

      case invalidStateForCommand

- `


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


  ` Command failed: The requested playback command is not allowed in the current playback state.
  For example, attempting to fast-forward during a commercial might return `NotAllowed`.

  #### Declaration

  Swift

      case notAllowed

- `


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


  ` Command failed: This endpoint is not active for playback.

  #### Declaration

  Swift

      case notActive

- `


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


  ` Command failed: The `FastForward` command or `Rewind` command was issued but the media is
  already playing back at the fastest speed supported by the server in the respective
  direction.

  #### Declaration

  Swift

      case speedOutOfRange

- `


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


  ` Command failed: The `Seek` command was issued with a specified position that is outside the
  allowed seek range of the media.

  #### Declaration

  Swift

      case seekOutOfRange

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/MediaPlaybackTrait/StatusEnum#/s:15GoogleHomeTypes6MatterO18MediaPlaybackTraitV10StatusEnumO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |