as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
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

Parameters

event?
import("./EventTargetInterface").Event

Returns

any

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
最后修改于 2026年8月25日