Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. TextTrackCue

TextTrackCue

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

TheTextTrackCue interface of theWebVTT API is the abstract base class for the various derived cue types, such asVTTCue; 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 aTextTrack. 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.

EventTarget TextTrackCue

Instance properties

This interface also inherits properties fromEventTarget.

TextTrackCue.trackRead only

TheTextTrack that this cue belongs to, ornull if it doesn't belong to any.

TextTrackCue.id

A string that identifies the cue.

TextTrackCue.startTime

Adouble that represents the video time that the cue will start being displayed, in seconds.

TextTrackCue.endTime

Adouble that represents the video time that the cue will stop being displayed, in seconds.

TextTrackCue.pauseOnExit

Aboolean for whether the video will pause when this cue stops being displayed.

Events

enter

Fired when a cue becomes active.

exit

Fired when the cue has stopped being active.

Specifications

Specification
HTML
# texttrackcue

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp