struct Matter::Cluster::Definitions::MediaPlayback::PlaybackPosition

Overview

This structure defines a playback position within a media stream being played.

Included Modules

Defined in:

matter/cluster/definitions/media_playback.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : Slice(UInt8)) #

[View source]

Instance Method Detail

def position : UInt64 | Nil #

This shall indicate the associated discrete position within the media stream, in milliseconds from the beginning of the stream, being associated with the time indicated by the UpdatedAt field. The Position shall not be greater than the duration of the media if duration is specified. The Position shall not be greater than the time difference between current time and start time of the media when start time is specified.

A value of null shall indicate that playback position is not applicable for the current state of the media playback (For example : Live media with no known duration and where seek is not supported).


[View source]
def position=(position : UInt64 | Nil) #

This shall indicate the associated discrete position within the media stream, in milliseconds from the beginning of the stream, being associated with the time indicated by the UpdatedAt field. The Position shall not be greater than the duration of the media if duration is specified. The Position shall not be greater than the time difference between current time and start time of the media when start time is specified.

A value of null shall indicate that playback position is not applicable for the current state of the media playback (For example : Live media with no known duration and where seek is not supported).


[View source]
def updated_at : UInt64 #

This shall indicate the time when the position was last updated.


[View source]
def updated_at=(updated_at : UInt64) #

This shall indicate the time when the position was last updated.


[View source]