Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
videoTracks は HTMLMediaElement オブジェクトの読み取り専用プロパティで、メディア要素の動画トラックを表すすべての VideoTrack オブジェクトを列挙した VideoTrackList オブジェクトを返します。
返されたリストは生きています。つまり、トラックがメディア要素に追加されたり取り除かれたりすると、リストの内容は動的に変化します。 リストへの参照を取得したら、新しい動画トラックが追加されたのか既存のトラックが取り除かれたのかを検出するために変更を監視できます。 メディア要素のトラックリストへの変更を監視する方法の詳細については、VideoTrackList のイベントを参照してください。
メディア要素に含まれる動画トラックのリストを表す VideoTrackList オブジェクト。 トラックのリストは、配列記法や、オブジェクトの getTrackById() メソッドを使ってアクセスできます。
各トラックは、トラックに関する情報を提供する VideoTrack オブジェクトによって表されます。
| HTML # dom-media-videotracks-dev |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024年7月31日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.