ビデオtextTracksプロパティ
例
利用可能なテキストトラックの数を取得します。
var x = document.getElementById("myVideo").textTracks.length;
定義と使用法
textTracksプロパティは、TextTrackListオブジェクトを返します。
TextTrackListオブジェクトは、ビデオで使用可能なテキストトラックを表します。
使用可能な各テキストトラックは、TextTrackオブジェクトで表されます。
ブラウザのサポート
Property | |||||
---|---|---|---|---|---|
textTracks | Yes | 9.0 | Not supported | 6.0 | Yes |
構文
videoObject.textTracks
戻り値
Type | Description |
---|---|
TextTrackList Object | Represents the available text tracks for the the video. TextioTrackList Object:
Note: The first available TextTrack object is index 0 |
TextTrack Object | Represents a text track. TextTrack Object Properties:
|
❮ビデオオブジェクト