Web/API/MediaStreamTrack/getSettings

From Get docs


The getSettings() method of the MediaStreamTrack interface returns a MediaTrackSettings object containing the current values of each of the constrainable properties for the current MediaStreamTrack. See Capabilities, constraints, and settings for details on how to work with constrainable properties.

Syntax

const settings = track.getSettings()

Returns

MediaTrackSettings object describing the current configuration of the track's constrainable properties.

Note: The returned object identifies the current values of every constrainable property, including those which are platform defaults rather than having been expressly set by the site's code. To instead fetch the most-recently established constraints for the track's properties, as specified by the site's code, use getConstraints().


Specifications

Specification Status Comment
Media Capture and StreamsThe definition of 'getSettings()' in that specification. Candidate Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
getSettings Chrome

Full support 61

Edge

Full support 12

Firefox

Full support 50

IE

No support No

Opera

Full support 48

Safari

Full support Yes

WebView Android

Full support 61

Chrome Android

Full support 61

Firefox Android

Full support 50

Opera Android

Full support 45

Safari iOS

Full support 11

Samsung Internet Android

Full support 8.0

Legend

Full support  
Full support
No support  
No support