TextTrackCue
基线 广泛可用
此功能已得到完善,并在许多设备和浏览器版本上运行。它自 2015 年 7 月.
报告反馈
The TextTrackCue
interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue
; you will work with these derived types rather than the base class.
实例属性
These cues represent strings of text presented for some duration of time during the performance of a TextTrack
. The cue includes the start time (the time at which the text will be displayed) and the end time (the time at which it will be removed from the display), as well as other information.
- This interface also inherits properties from
EventTarget
. The
TextTrack
that this cue belongs to, ornull
if it doesn't belong to any.-
TextTrackCue.id
A string that identifies the cue.
-
TextTrackCue.startTime
A
double
that represents the video time that the cue will start being displayed, in seconds.-
TextTrackCue.endTime
A
double
that represents the video time that the cue will stop being displayed, in seconds.-
TextTrackCue.pauseOnExit
事件
规范
Fired when the cue has stopped being active. |
---|
规范 # HTML 标准 |
浏览器兼容性
texttrackcue