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

TextTrack

https://html.spec.whatwg.org/multipage/media.html#texttrack

Extends

Properties

id

readonly id: string

For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-id.


kind

readonly kind: string

For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-kind.


label

readonly label: string

For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-label.


language

readonly language: string

For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-language.


inBandMetadataTrackDispatchType

readonly inBandMetadataTrackDispatchType: string

https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-inbandmetadatatrackdispatchtype


mode

mode: TextTrackMode

For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-mode.


cues

readonly cues: TextTrackCueList

https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-cues


activeCues

readonly activeCues: TextTrackCueList

https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-activecues


oncuechange

oncuechange: EventHandler

https://html.spec.whatwg.org/multipage/media.html#handler-texttrack-oncuechange

Methods

addCue()

addCue(cue: TextTrackCue): void

https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-addcue

Parameters

cue

TextTrackCue


removeCue()

removeCue(cue: TextTrackCue): void

https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-removecue

Parameters

cue

TextTrackCue


Last updated: Jul 22, 2026