The HTMLTrackElement.src
property reflects the value of the <track>
element's src
attribute, which indicates the URL of the text track's data.
var textTrackURL = HTMLTrackElement.src;
A DOMString
object containing the URL of the text track data.
// coming soon
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'HTMLTrackElement.src' in that specification. | Living Standard | No change from HTML5 |
HTML5 The definition of 'HTMLTrackElement.src' in that specification. | Recommendation | Initial definition. |
Feature | Chrome | Firefox (Gecko)[1] | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 24 (24) | ? | ? | ? |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | (Yes) | 24.0 (24) | (Yes) | ? | (Yes) | (Yes) |
[1] Until Firefox 50, the src
property is settable, but the change does not get handled properly. Starting in Firefox 50, existing track data is properly disposed of, new track data is loaded and put into effect, and so forth.
HTMLTrackElement
.<track>
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src