MediaPlaybackTrait.PlaybackPositionStruct

class MediaPlaybackTrait.PlaybackPositionStruct : ClusterStruct


A playback position within a media stream.

Summary

Public constructors

PlaybackPositionStruct(updatedAt: ULong, position: ULong?)

Creates the PlaybackPositionStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

ULong?

The discrete position within the media stream, in milliseconds from the beginning of the stream, as of the time specified in the updatedAt field.

ULong

The time when the position was last updated.

Public constructors

PlaybackPositionStruct

PlaybackPositionStruct(updatedAt: ULong, position: ULong? = null)

Creates the PlaybackPositionStruct class.

Public functions

getDescriptor

open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

position

val positionULong?

The discrete position within the media stream, in milliseconds from the beginning of the stream, as of the time specified in the updatedAt field.

updatedAt

val updatedAtULong

The time when the position was last updated.