getCapabilities() method of
MediaStreamTrack interface returns a
MediaTrackCapabilities object which specifies the values or range of
values which each constrainable property, based upon the platform and user
Once you know what the browser's capabilities are, your script can use
applyConstraints() to ask for the
track to be configured to match ideal or acceptable settings. See Capabilities, constraints,
and settings for details on how to work with constrainable properties.
const capabilities = track.getCapabilities()
MediaTrackCapabilities object which specifies the value or range of
values which are supported for each of the user agent's supported constrainable
|Media Capture and Streams
The definition of 'getCapabilities()' in that specification.
|Candidate Recommendation||Initial definition.|
BCD tables only load in the browser