HTMLTrackElement:src 属性

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.

HTMLTrackElement.src 属性反映 <track> 元素的 src 属性的值,其指示文本轨道数据的 URL。

一个包含文本轨道数据的 URL 字符串。

示例

js
// 即将推出

规范

Specification
HTML
# dom-track-src

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
src

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
See implementation notes.

参见