Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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() or IAudioTrack.getId() can be used for [Track#id]
  • ITextTrack.getLanguage() or IAudioTrack.getLanguage() can be used to construct a Locale object for [Track#language]
  • ITextTrack.getLabel() or IAudioTrack.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

com.amazon.apmf.Locale? — Optional
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.

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.
Last modified on October 29, 2026