Data object Track
interface struct Track
This type is a basic representation of an individual text, caption or audio track
When using the W3CMedia API, you can create a [Track] from a
com.amazon.kepler.w3cmedia.ITextTrack or com.amazon.kepler.w3cmedia.IAudioTrack.
ITextTrack.getId()orIAudioTrack.getId()can be used for [Track#id]ITextTrack.getLanguage()orIAudioTrack.getLanguage()can be used to construct a Locale object for [Track#language]ITextTrack.getLabel()orIAudioTrack.getLabel()can be used to initialize [Track#displayName]
Fields
id
string — Required
A unique identifier for the track.
The id is only required to be unique in the context of the currently playing media.
language
An optional locale that follows the RFC 5646 standard for language tags. This property specifies the language of the track’s content, useful for example to filter or select tracks based on language criteria. When the track is not associated with any particular language, for example, an audio-only instrumental music track, then this property is unset. “en”, “en-US”, “es”, “es-MX” are all examples of valid RFC 5646 language tags.com.amazon.apmf.Locale?— Optional
displayName
string? — Optional
An optional human-readable name for the track.
If a human readable name is not available for the track, this property is unset.
