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 ITextTrack

interface ITextTrack
Extends com.amazon.apmf.IStandard The TextTrack object to represent Text track of the content. For further details see https://html.spec.whatwg.org/multipage/media.html#texttrack

Methods

getId()

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

Returns

string Unique Id of the Text track

getKind()

TextTrackKind getKind()
Returns the kind of the text track as per the spec For further details see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-kind

Returns

TextTrackKind Kind of the Text track

getLabel()

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

Returns

string Label of the Text track

getLanguage()

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

Returns

string Language of the Text track

getMode()

TextTrackMode getMode()
Returns the mode (disabled, showing or hidden) of the text track. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-mode

Returns

TextTrackMode Mode of the Text track

setMode()

void setMode(TextTrackMode trackMode)
Sets the Text track mode. For further details see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-mode

Parameters

trackMode
TextTrackMode — Required Set the TextTrackMode
Last modified on October 29, 2026