as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

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