files/en-us/web/api/mediatracksettings/index.md
{{APIRef("Media Capture and Streams")}}
The MediaTrackSettings dictionary is used to return the current values configured for each of a {{domxref("MediaStreamTrack")}}'s settings. These values will adhere as closely as possible to any constraints previously described using a {{domxref("MediaTrackConstraints")}} object and set using {{domxref("MediaStreamTrack.applyConstraints", "applyConstraints()")}}, and will adhere to the default constraints for any properties whose constraints haven't been changed, or whose customized constraints couldn't be matched.
To learn more about how constraints and settings work, see Capabilities, constraints, and settings.
Some or all of the following will be included in the object, either because it's not supported by the browser or because it's not available due to context. For example, because {{Glossary("RTP")}} doesn't provide some of these values during negotiation of a WebRTC connection, a track associated with a {{domxref("RTCPeerConnection")}} will not include certain values, such as {{domxref("MediaTrackSettings.facingMode", "facingMode")}} or {{domxref("MediaTrackSettings.groupId", "groupId")}}.
true if automatic gain control is enabled and is false otherwise.true if echo cancellation is enabled, otherwise false.true if noise suppression is enabled, and is false otherwise.true if the browser will attempt to filter out system audio originating from the capturing tab during screen capture, and false otherwise.{{domxref("MediaTrackSettings.aspectRatio", "aspectRatio")}}
{{domxref("MediaTrackSettings.facingMode", "facingMode")}}
"user"
"environment"
"left"
"right"
{{domxref("MediaTrackSettings.frameRate", "frameRate")}}
{{domxref("MediaTrackSettings.height", "height")}}
{{domxref("MediaTrackSettings.width", "width")}}
{{domxref("MediaTrackSettings.resizeMode", "resizeMode")}}
"none"
"crop-and-scale"
Tracks containing video shared from a user's screen (regardless of whether the screen data comes from the entire screen or a portion of a screen, like a window or tab) are generally treated like video tracks, with the exception that they also support the following added settings:
{{domxref("MediaTrackSettings.cursor", "cursor")}}
always
motion
never
{{domxref("MediaTrackSettings.displaySurface", "displaySurface")}}
browser
monitor
window
{{domxref("MediaTrackSettings.logicalSurface", "logicalSurface")}}
true, indicates that the video contained in the stream's video track contains a background rendering context, rather than a user-visible one. This is false if the video being captured is coming from a foreground (user-visible) source.{{domxref("MediaTrackSettings.screenPixelRatio", "screenPixelRatio")}}
{{Specifications}}