enum Matter::Cluster::Definitions::MediaPlayback::StatusCode

Defined in:

matter/cluster/definitions/media_playback.cr

Enum Members

Success = 0_u8

Command succeeded

InvalidStateForCommand = 1_u8

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

NotAllowed = 2_u8

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

NotActive = 3_u8

Command failed: This endpoint is not active for playback.

SpeedOutOfRange = 4_u8

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

SeekOutOfRange = 5_u8

Command failed: The Seek Command was issued with a value of position outside of the allowed seek range of the media.

Instance Method Summary

Instance Method Detail

def invalid_state_for_command? #

Returns true if this enum value equals InvalidStateForCommand


[View source]
def not_active? #

Returns true if this enum value equals NotActive


[View source]
def not_allowed? #

Returns true if this enum value equals NotAllowed


[View source]
def seek_out_of_range? #

Returns true if this enum value equals SeekOutOfRange


[View source]
def speed_out_of_range? #

Returns true if this enum value equals SpeedOutOfRange


[View source]
def success? #

Returns true if this enum value equals Success


[View source]