TextTrackCue - Web APIs 编辑

TextTrackCue is an abstract class which is used as the basis for the various derived cue types, such as VTTCue; you will instead work with those derived types. These cues represent a string of text that is 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.

Properties

This interface also inherits properties from EventTarget.

TextTrackCue.track Read only
The TextTrack that this cue belongs to, or null if it doesn't belong to any.
TextTrackCue.id
A DOMString 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
A boolean for whether the video will pause when this cue stops being displayed.

Event handlers

TextTrackCue.onenter
The event handler for the enter event.
TextTrackCue.onexit
The event handler for the exit event.

Specifications

SpecificationStatusComment
HTML Living Standard
The definition of 'TextTrackCue' in that specification.
Living Standard
HTML5
The definition of 'TextTrackCue' in that specification.
RecommendationInitial definition

Browser compatibility

BCD tables only load in the browser

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:135 次

字数:4468

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文