MediaStreamTrack: getSettings() method

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

js
getSettings()

Parameters

None.

Return value

A 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
Media Capture and Streams
# dom-mediastreamtrack-getsettings

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
getSettings

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support