The VideoTrack property selected controls whether or not a particular video track is active.
The VideoTrack property selected controls whether or not a particular video track is active.
The selected property is a Boolean whose value is true if the track is active. Only a single video track can be active at any given time, so setting this property to true for one track while another track is active will make that other track inactive.
| Specification |
|---|
| HTML Standard # dom-videotrack-selected-dev |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
selected |
37 | 7912–79 | 33 | 10 | 24 | 7 | No | 37 | No | No | 7 | No |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected