struct

Matter::Cluster::Definitions::MediaPlayback::SkipRequest

Inherits TLV::Serializable < Struct < Value < Object

Input to the MediaPlayback seek command

Constructors

new(any : TLV::Any)
Source

Class methods

from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
Source
from_slice(bytes : Bytes)
Source
from_tlv(any : TLV::Any)
Source
from_tlv(data : Bytes)
Source

Instance methods

position

This shall indicate the position (in milliseconds) in the media to seek to. In case the position falls in the middle of a frame, the server shall set the position to the beginning of that frame and set the SampledPosition attribute on the cluster accordingly. If the position falls before the earliest valid position or beyond the furthest valid position to which a client may seek back or forward to respectively, the status of SEEK_OUT_OF_RANGE shall be returned and no change shall be made to the position of the playback.

Source
position=(position : UInt64)

This shall indicate the position (in milliseconds) in the media to seek to. In case the position falls in the middle of a frame, the server shall set the position to the beginning of that frame and set the SampledPosition attribute on the cluster accordingly. If the position falls before the earliest valid position or beyond the furthest valid position to which a client may seek back or forward to respectively, the status of SEEK_OUT_OF_RANGE shall be returned and no change shall be made to the position of the playback.

Source
to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Source
to_slice
Source
to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source