← Back to release summary

MediaStreamTrack resizeMode constraint

Category
WebRTC
Type
New or changed feature
Status
Enabled by default (Chrome 72)
Intent stage
None

Summary

This property controls the method the browser uses to derive the resolution of a MediaStreamTrack. There are two supported values: "none": the track has the native resolution provided by the camera, its driver, or the OS. "crop-and-scale": the browser may use cropping and rescaling to adjust the resolution of the video produced by the camera. This is useful for getting more consistent behavior across browsers, or if an application wants to make sure it gets only native resolutions.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings

View on chromestatus.com