The HTMLTrackElement interface represents an HTML <track>
element
the DOM. This element can be used as a child of either <audio>
<video>
to specify a text track containing information such
closed captions or subtitles.
The HTMLTrackElement interface represents an HTML `<track>` element the DOM. This element can be used as a child of either `<audio>` `<video>` to specify a text track containing information such closed captions or subtitles.
(default this)
Property.
A Boolean reflecting the default attribute, indicating that the is to be enabled if the user's preferences do not indicate that track would be more appropriate.
Property. A Boolean reflecting the default attribute, indicating that the is to be enabled if the user's preferences do not indicate that track would be more appropriate.
(kind this)
Property.
Is a DOMString that reflects the kind HTML attribute, indicating the text track is meant to be used. Possible values are: subtitles, descriptions, chapters, or metadata.
Property. Is a DOMString that reflects the kind HTML attribute, indicating the text track is meant to be used. Possible values are: subtitles, descriptions, chapters, or metadata.
(label this)
Property.
Is a DOMString that reflects the label HTML attribute, indicating user-readable title for the track.
Property. Is a DOMString that reflects the label HTML attribute, indicating user-readable title for the track.
(ready-state this)
Property.
Returns an unsigned short that show the readiness state of the Constant Value Description NONE 0 Indicates that the text track's cues have not been obtained. LOADING 1 Indicates that the text track is loading and there have been fatal errors encountered so far. Further cues might still be to the track by the parser. LOADED 2 Indicates that the text track has been loaded with no fatal ERROR 3 Indicates that the text track was enabled, but when the user attempted to obtain it, this failed in some way. Some or all the cues are likely missing and will not be obtained.
Property. Returns an unsigned short that show the readiness state of the Constant Value Description NONE 0 Indicates that the text track's cues have not been obtained. LOADING 1 Indicates that the text track is loading and there have been fatal errors encountered so far. Further cues might still be to the track by the parser. LOADED 2 Indicates that the text track has been loaded with no fatal ERROR 3 Indicates that the text track was enabled, but when the user attempted to obtain it, this failed in some way. Some or all the cues are likely missing and will not be obtained.
(set-default! this val)
Property.
A Boolean reflecting the default attribute, indicating that the is to be enabled if the user's preferences do not indicate that track would be more appropriate.
Property. A Boolean reflecting the default attribute, indicating that the is to be enabled if the user's preferences do not indicate that track would be more appropriate.
(set-kind! this val)
Property.
Is a DOMString that reflects the kind HTML attribute, indicating the text track is meant to be used. Possible values are: subtitles, descriptions, chapters, or metadata.
Property. Is a DOMString that reflects the kind HTML attribute, indicating the text track is meant to be used. Possible values are: subtitles, descriptions, chapters, or metadata.
(set-label! this val)
Property.
Is a DOMString that reflects the label HTML attribute, indicating user-readable title for the track.
Property. Is a DOMString that reflects the label HTML attribute, indicating user-readable title for the track.
(set-ready-state! this val)
Property.
Returns an unsigned short that show the readiness state of the Constant Value Description NONE 0 Indicates that the text track's cues have not been obtained. LOADING 1 Indicates that the text track is loading and there have been fatal errors encountered so far. Further cues might still be to the track by the parser. LOADED 2 Indicates that the text track has been loaded with no fatal ERROR 3 Indicates that the text track was enabled, but when the user attempted to obtain it, this failed in some way. Some or all the cues are likely missing and will not be obtained.
Property. Returns an unsigned short that show the readiness state of the Constant Value Description NONE 0 Indicates that the text track's cues have not been obtained. LOADING 1 Indicates that the text track is loading and there have been fatal errors encountered so far. Further cues might still be to the track by the parser. LOADED 2 Indicates that the text track has been loaded with no fatal ERROR 3 Indicates that the text track was enabled, but when the user attempted to obtain it, this failed in some way. Some or all the cues are likely missing and will not be obtained.
(set-src! this val)
Property.
The HTMLTrackElement.src property reflects the value of the <track>
src attribute, which indicates the URL of the text track's data.
var textTrackURL = HTMLTrackElement.src;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src
Property. The HTMLTrackElement.src property reflects the value of the `<track>` src attribute, which indicates the URL of the text track's data. `var textTrackURL = HTMLTrackElement.src;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src`
(set-srclang! this val)
Property.
Is a DOMString that reflects the srclang HTML attribute, indicating language of the text track data.
Property. Is a DOMString that reflects the srclang HTML attribute, indicating language of the text track data.
(set-track! this val)
Property.
Returns TextTrack is the track element's text track data.
Property. Returns TextTrack is the track element's text track data.
(src this)
Property.
The HTMLTrackElement.src property reflects the value of the <track>
src attribute, which indicates the URL of the text track's data.
var textTrackURL = HTMLTrackElement.src;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src
Property. The HTMLTrackElement.src property reflects the value of the `<track>` src attribute, which indicates the URL of the text track's data. `var textTrackURL = HTMLTrackElement.src;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src`
(srclang this)
Property.
Is a DOMString that reflects the srclang HTML attribute, indicating language of the text track data.
Property. Is a DOMString that reflects the srclang HTML attribute, indicating language of the text track data.
(track this)
Property.
Returns TextTrack is the track element's text track data.
Property. Returns TextTrack is the track element's text track data.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close