VideoTrack.selected
The VideoTrack
property selected
controls whether or not a particular video track is active.
Syntax
isVideoSelected = VideoTrack.selected; VideoTrack.selected = true | false;
Value
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.
Specifications
Specification |
---|
HTML Standard (HTML) # dom-videotrack-selected-dev |
Browser compatibility
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 |
79
12-79
|
33 |
10 |
24 |
7 |
No |
37 |
33 |
24 |
7 |
No |
© 2005–2021 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