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 Status Comment
HTML Living Standard
The definition of 'VideoTrack: selected' in that specification.
Living Standard Ā 

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
selectedChrome ? Edge Full support 12Firefox ? IE ? Opera ? Safari Full support YesWebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS Full support YesSamsung Internet Android ?

Legend

Full support Ā 
Full support
Compatibility unknown Ā 
Compatibility unknown