VideoTrack: selected-Eigenschaft

Limited availability

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

Die VideoTrack-Eigenschaft selected steuert, ob ein bestimmter Videospur aktiv ist oder nicht.

Wert

Die selected-Eigenschaft ist ein Boolean, dessen Wert true ist, wenn die Spur aktiv ist. Es kann zu jedem Zeitpunkt nur eine Videospur aktiv sein, sodass das Setzen dieser Eigenschaft auf true für eine Spur, während eine andere Spur aktiv ist, diese andere Spur inaktiv macht.

Spezifikationen

Specification
HTML
# dom-videotrack-selected-dev

Browser-Kompatibilität

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.