扩展
属性
id
readonly id: string
有关更多信息,请参阅https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-id。
kind
readonly kind: string
有关更多信息,请参阅https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-kind。
label
readonly label: string
有关更多信息,请参阅https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-label。
language
readonly language: string
有关更多信息,请参阅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 有关更多信息,请参阅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
方法
addCue()
addCue(cue: TextTrackCue):void
https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-addcue
参数
cue
TextTrackCueremoveCue()
removeCue(cue: TextTrackCue):void
https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-removecue

