HTMLオーディオ/ビデオDOMvideoTracksプロパティ
例
利用可能なビデオトラックの数を取得します。
var vid = document.getElementById("myVideo");
alert(vid.videoTracks.length);
定義と使用法
videoTracksプロパティは、VideoTrackListオブジェクトを返します。
VideoTrackListオブジェクトは、ビデオで使用可能なビデオトラックを表します。
使用可能な各ビデオトラックは、VideoTrackオブジェクトで表されます。
ブラウザのサポート
Property | |||||
---|---|---|---|---|---|
videoTracks | Not supported | Not supported | Not supported | Not supported | Not supported |
構文
video.videoTracks
戻り値
Type | Description |
---|---|
VideoTrackList Object | Represents the available video tracks for the video. VideoTrackList Object:
Note: The first available VideoTrack object is index 0 |
VideoTrack Object | Represents a video track. VideoTrack Object Properties:
|
❮HTMLオーディオ/ビデオDOMリファレンス