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
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 | Status | Comment |
Media Capture and StreamsThe definition of 'getSettings()' in that specification. | Candidate Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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
MediaStreamTrack.getSettings() by Mozilla Contributors is licensed under CC-BY-SA 2.5.