Class: TracksInfo

  • TracksInfo provides information about available media tracks, including active tracks, language, text track style, and overall track details.

  • You can specify active tracks using either activeTrackIds or prioritize language selection using the language property.

  • TracksInfo includes details about text track style through textTrackStyle and a comprehensive list of tracks via the tracks property.

Constructor

TracksInfo

new TracksInfo()

Properties

activeTrackIds

(non-null Array of number or undefined)

The track IDs that should be active.

language

(string or undefined)

Language for the tracks that should be active. The language field will take precedence over activeTrackIds if both are specified.

textTrackStyle

(non-null cast.framework.messages.TextTrackStyle or undefined)

The text track style.

tracks

(non-null Array of non-null cast.framework.messages.Track or undefined)

The tracks information.