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

Interface IAudioTrack

interface IAudioTrack
Extends com.amazon.apmf.IStandard The AudioTrack object to represent audio track of the content. For further details see https://html.spec.whatwg.org/multipage/media.html#audiotrack

Methods

getId()

string getId()
Returns the unique ID of the AudioTrack For further details see https://html.spec.whatwg.org/multipage/media.html#dom-audiotrack-id

Returns

string Unique Id of the audio track

getKind()

string getKind()
Returns the kind of audio track as per the specification below. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-audiotrack-kind

Returns

string Kind of the audio track

getLabel()

string getLabel()
Returns a user friendly lable for the audio track For further details see https://html.spec.whatwg.org/multipage/media.html#dom-audiotrack-label

Returns

string Label of the audio track.

getLanguage()

string getLanguage()
Returns the language of the audio track. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-audiotrack-language

Returns

string Language of the audio track.

isEnabled()

bool isEnabled()
Queries if the audio track is enabled or disabled. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-audiotrack-enabled

Returns

bool true if the track is enabled false otherwise.

enableTrack()

void enableTrack()
Enables the audio track identified by the id of the track. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-audiotrack-enabled

disableTrack()

void disableTrack()
Disables the audio track identified by the id of the track. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-audiotrack-enabled
Last modified on October 29, 2026