Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for TextTrackCue.
Developer library 6
Firefox 24 release notes for developers
ve() method has been added ([Firefox bug 856629](https://bugzil.la/856629)). - The WebVTT interfaces related to the track element, HTMLTrackElement, TextTrack, TextTrackCue, TextTrackList, and TextTrackCueList have been implemented behind the `media.webvtt.enabled` property, defaulting to `false` ([Firefox bug 833385](https://bugzil.la/833385)). - The Gamepad interface, and Navigator.getGamepads have been implemented
Using the imscJS polyfill
ISD. - Use an `onexit` event to remove the rendering layer again. ```js for (let i = 0; i < timeEvents.length; i++) { const Cue = window.VTTCue || window.TextTrackCue; let myCue; if (i < timeEvents.length - 1) { myCue = new Cue(timeEvents[i], timeEvents[i + 1], ""); } else { myCue = new Cue(timeEvents[i], myVideo.duration, ""); } myCue.onenter = function () { clearSubFromScreen(); co
TextTrackCue
WebVTT The **`TextTrackCue`** interface of the [WebVTT API](/docs/Web/API/WebVTT_API) is the abstract base class for the various derived cue types, such as VTTCue and DataCue; 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 wil
TextTrackCue: endTime property
WebVTT The **`endTime`** property of the TextTrackCue interface returns and sets the end time of the cue. ## Value A number representing the end time, in seconds. ## Examples In the following example a new VTTCue (which inherits from `TextTrackCue`) is created starting at 0.1 second and ending at 0.9 seconds. The `endTime` property is then printed to the console. ```js let video = document.querySelector("video"
TextTrackCue: exit event
WebVTT The **`exit`** event fires when a cue stops being active. ## Syntax Use the event name in addEventListener(): ```js-nolint addEventListener("exit", (event) => { }) ``` Alternatively, assign to the [event handler property](/docs/Web/API/Document_Object_Model/Events#using_onevent_properties) of the interface: ```js-nolint onexit = (event) => { } ``` ## Event type A generic Event with no added properties.
TextTrackCue: id property
WebVTT The **`id`** property of the TextTrackCue interface returns and sets the identifier for this cue. ## Value A string containing the ID of this cue. ## Examples In the following example a new VTTCue (which inherits from `TextTrackCue`) is created. The `id` property is then set to "first", before the cue is added. ```js let video = document.querySelector("video"); let track = video.addTextTrack("captions",