Video textTracks attribute
Definition and usage
textTracks
The property returns a TextTrackList object.
TextTrackList object represents the available text tracks in the video.
Each available text track is represented by a TextTrack object.
Example
Get the number of available text tracks:
var x = document.getElementById("myVideo").textTracks.length;
Syntax
videoObject.textTracks
Return value
Type | Description |
---|---|
TextTrackList 对象 |
wanda ke wakiltar textTrack a cikin video TextioTrackList 对象:
Kira:TextTrack 对象 na farko wanda ke cikin yadda 0. |
TextTrack 对象 |
wanda ke wakiltar textTrack TextTrack 对象属性:
Kariya ta haki kind:
|
Dukansuwa browsers
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Tukurawa | 9.0 | Ba a ƙabila ba | 6.0 | Tukurawa |