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