VideoTrack: selected プロパティ

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

VideoTrackselected プロパティは、特定の映像トラックがアクティブかどうかを制御します。

selected プロパティは、トラックがアクティブな場合に値が true になる論理値です。 同時にアクティブにできる映像トラックは 1 つだけなので、別のトラックがアクティブなときに、あるトラックでこのプロパティを true に設定すると、アクティブであったトラックは非アクティブになります。

仕様書

Specification
HTML
# dom-videotrack-selected-dev

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
selected

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
User must explicitly enable this feature.
Has more compatibility info.