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.
var settings = MediaStreamTrack.getSettings();
None.
A MediaTrackSettings
object describing the current configuration of the track's constrainable properties.
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()
.
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'getSettings()' in that specification. | Candidate Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 61 | 12 | 50 | ? | 48 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 61 | 61 | ? | 50 | 48 | 11 | No |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings