MediaPlaybackTrait.StateChanged

interface MediaPlaybackTrait.StateChanged : ClusterStruct


State changed event.

Summary

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

Boolean?

Indicates whether audio is unmuted by the player due to a FF or REW command.

MediaPlaybackTrait.PlaybackStateEnum?

Indicates the updated playback state.

ByteArray?

Contains optional app-specific data.

ULong?

Indicates the updated duration.

Float?

Indicates the updated playback speed.

MediaPlaybackTrait.PlaybackPositionStruct?

Indicates updated position of playback.

ULong?

Indicates the updated seek range end.

ULong?

Indicates the updated seek range start.

ULong?

Indicates the updated tart time.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

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

Public properties

audioAdvanceUnmuted

val audioAdvanceUnmuted: Boolean?

Indicates whether audio is unmuted by the player due to a FF or REW command.

currentState

val currentState: MediaPlaybackTrait.PlaybackStateEnum?

Indicates the updated playback state.

data

val data: ByteArray?

Contains optional app-specific data.

duration

val duration: ULong?

Indicates the updated duration.

playbackSpeed

val playbackSpeed: Float?

Indicates the updated playback speed.

sampledPosition

val sampledPosition: MediaPlaybackTrait.PlaybackPositionStruct?

Indicates updated position of playback.

seekRangeEnd

val seekRangeEnd: ULong?

Indicates the updated seek range end.

seekRangeStart

val seekRangeStart: ULong?

Indicates the updated seek range start.

startTime

val startTime: ULong?

Indicates the updated tart time.