MediaPlaybackTrait.TrackStruct

class MediaPlaybackTrait.TrackStruct : ClusterStruct


A track.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

TrackStruct(
    id: String,
    trackAttributes: MediaPlaybackTrait.TrackAttributesStruct?
)

Creates the TrackStruct 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

String

Track ID.

MediaPlaybackTrait.TrackAttributesStruct?

Track attributes.

Public constructors

TrackStruct

TrackStruct(
    id: String = "",
    trackAttributes: MediaPlaybackTrait.TrackAttributesStruct? = null
)

Creates the TrackStruct class.

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

id

val idString

Track ID.

trackAttributes

val trackAttributesMediaPlaybackTrait.TrackAttributesStruct?

Track attributes.