From b9e8adb2380a6ee09df55b5cf18f1d45fb45ae5b Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 16 Sep 2025 13:58:06 +1000 Subject: [PATCH 1/7] FF144 MediaDevices.getUserMedia() method allows resizeMode constraint --- files/en-us/mozilla/firefox/releases/144/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/en-us/mozilla/firefox/releases/144/index.md b/files/en-us/mozilla/firefox/releases/144/index.md index 63271b9be76e3d7..f4af70fa257d7de 100644 --- a/files/en-us/mozilla/firefox/releases/144/index.md +++ b/files/en-us/mozilla/firefox/releases/144/index.md @@ -62,6 +62,9 @@ Firefox 144 is the current [Beta version of Firefox](https://www.firefox.com/en- - {{domxref("RTCDataChannel")}} instances are now [transferrable objects](/en-US/docs/Web/API/Web_Workers_API/Transferable_objects), and hence can be passed to [workers](/en-US/docs/Web/API/Worker). ([Firefox bug 1209163](https://bugzil.la/1209163)). - The [`closing` event](/en-US/docs/Web/API/RTCDataChannel/closing_event) and the `onclosing()` event handler are now supported on the {{domxref("RTCDataChannel")}} interface. ([Firefox bug 1611953](https://bugzil.la/1611953)). +- The {{domxref("MediaDevices.getUserMedia()")}} method now allows the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint to be specified as a parameter option, allowing developers to crop and downscale video captured from a camera to any resolution they choose. ([Firefox bug 1286945](https://bugzil.la/1286945)). + + The constraint has the allowed values `"crop-and-scale"` or `"none"`. When `"crop-and-scale"` (the default) is set, the video stream provided by the camera may be cropped, have its resolution downscaled, and/or have its frame rate reduced by dropping frames, in order to achieve the shortest [fitness distance](https://w3c.github.io/mediacapture-main/#dfn-fitness-distance) to the requested constraints. This allows the camera to provide a stream with the desired constraints even if such a stream is not natively supported by the camera. For screen and window media `"crop-and-scale"` will downscale the resolution to achieve the shortest fitness distance, but will not crop the video or reduce the frame rate. If `none` is set then the video will not be cropped, downscaled, or have its frame rate reduced. From 197ff0f3732af447d89b838eb678d7a5fdf72d83 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 16 Sep 2025 14:31:43 +1000 Subject: [PATCH 2/7] getDisplayMedia affected too --- files/en-us/mozilla/firefox/releases/144/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/144/index.md b/files/en-us/mozilla/firefox/releases/144/index.md index f4af70fa257d7de..b16b5875d318f60 100644 --- a/files/en-us/mozilla/firefox/releases/144/index.md +++ b/files/en-us/mozilla/firefox/releases/144/index.md @@ -62,7 +62,8 @@ Firefox 144 is the current [Beta version of Firefox](https://www.firefox.com/en- - {{domxref("RTCDataChannel")}} instances are now [transferrable objects](/en-US/docs/Web/API/Web_Workers_API/Transferable_objects), and hence can be passed to [workers](/en-US/docs/Web/API/Worker). ([Firefox bug 1209163](https://bugzil.la/1209163)). - The [`closing` event](/en-US/docs/Web/API/RTCDataChannel/closing_event) and the `onclosing()` event handler are now supported on the {{domxref("RTCDataChannel")}} interface. ([Firefox bug 1611953](https://bugzil.la/1611953)). -- The {{domxref("MediaDevices.getUserMedia()")}} method now allows the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint to be specified as a parameter option, allowing developers to crop and downscale video captured from a camera to any resolution they choose. ([Firefox bug 1286945](https://bugzil.la/1286945)). +- The {{domxref("MediaDevices/getUserMedia","getUserMedia()")}} and {{domxref("MediaDevices/getDisplayMedia","getDisplayMedia()")}} methods of the {{domxref("MediaDevices")}} interface now allow the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint to be specified as a parameter option. + These allow developers to crop and downscale video captured from a camera to any resolution they choose, and to downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). The constraint has the allowed values `"crop-and-scale"` or `"none"`. When `"crop-and-scale"` (the default) is set, the video stream provided by the camera may be cropped, have its resolution downscaled, and/or have its frame rate reduced by dropping frames, in order to achieve the shortest [fitness distance](https://w3c.github.io/mediacapture-main/#dfn-fitness-distance) to the requested constraints. This allows the camera to provide a stream with the desired constraints even if such a stream is not natively supported by the camera. For screen and window media `"crop-and-scale"` will downscale the resolution to achieve the shortest fitness distance, but will not crop the video or reduce the frame rate. If `none` is set then the video will not be cropped, downscaled, or have its frame rate reduced. From 0422d3daadd5590239e6fc18a1e6a2fffba208fa Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 19 Sep 2025 09:38:59 +1000 Subject: [PATCH 3/7] Update files/en-us/mozilla/firefox/releases/144/index.md Co-authored-by: Dipika Bhattacharya --- files/en-us/mozilla/firefox/releases/144/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/mozilla/firefox/releases/144/index.md b/files/en-us/mozilla/firefox/releases/144/index.md index b16b5875d318f60..062a8feef6633dd 100644 --- a/files/en-us/mozilla/firefox/releases/144/index.md +++ b/files/en-us/mozilla/firefox/releases/144/index.md @@ -62,8 +62,8 @@ Firefox 144 is the current [Beta version of Firefox](https://www.firefox.com/en- - {{domxref("RTCDataChannel")}} instances are now [transferrable objects](/en-US/docs/Web/API/Web_Workers_API/Transferable_objects), and hence can be passed to [workers](/en-US/docs/Web/API/Worker). ([Firefox bug 1209163](https://bugzil.la/1209163)). - The [`closing` event](/en-US/docs/Web/API/RTCDataChannel/closing_event) and the `onclosing()` event handler are now supported on the {{domxref("RTCDataChannel")}} interface. ([Firefox bug 1611953](https://bugzil.la/1611953)). -- The {{domxref("MediaDevices/getUserMedia","getUserMedia()")}} and {{domxref("MediaDevices/getDisplayMedia","getDisplayMedia()")}} methods of the {{domxref("MediaDevices")}} interface now allow the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint to be specified as a parameter option. - These allow developers to crop and downscale video captured from a camera to any resolution they choose, and to downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). +- The {{domxref("MediaDevices/getUserMedia","getUserMedia()")}} and {{domxref("MediaDevices/getDisplayMedia","getDisplayMedia()")}} methods of the {{domxref("MediaDevices")}} interface now support the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint. + This constraint allows developers to crop and downscale video captured from a camera to any resolution they choose, and downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). The constraint has the allowed values `"crop-and-scale"` or `"none"`. When `"crop-and-scale"` (the default) is set, the video stream provided by the camera may be cropped, have its resolution downscaled, and/or have its frame rate reduced by dropping frames, in order to achieve the shortest [fitness distance](https://w3c.github.io/mediacapture-main/#dfn-fitness-distance) to the requested constraints. This allows the camera to provide a stream with the desired constraints even if such a stream is not natively supported by the camera. For screen and window media `"crop-and-scale"` will downscale the resolution to achieve the shortest fitness distance, but will not crop the video or reduce the frame rate. If `none` is set then the video will not be cropped, downscaled, or have its frame rate reduced. From 2c8cf89e92c4d798703c23380946007b06dd6067 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 19 Sep 2025 09:46:25 +1000 Subject: [PATCH 4/7] remove additional detail as per feedback --- files/en-us/mozilla/firefox/releases/144/index.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/en-us/mozilla/firefox/releases/144/index.md b/files/en-us/mozilla/firefox/releases/144/index.md index 062a8feef6633dd..8a9563d5f2980ea 100644 --- a/files/en-us/mozilla/firefox/releases/144/index.md +++ b/files/en-us/mozilla/firefox/releases/144/index.md @@ -65,8 +65,6 @@ Firefox 144 is the current [Beta version of Firefox](https://www.firefox.com/en- - The {{domxref("MediaDevices/getUserMedia","getUserMedia()")}} and {{domxref("MediaDevices/getDisplayMedia","getDisplayMedia()")}} methods of the {{domxref("MediaDevices")}} interface now support the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint. This constraint allows developers to crop and downscale video captured from a camera to any resolution they choose, and downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). - The constraint has the allowed values `"crop-and-scale"` or `"none"`. When `"crop-and-scale"` (the default) is set, the video stream provided by the camera may be cropped, have its resolution downscaled, and/or have its frame rate reduced by dropping frames, in order to achieve the shortest [fitness distance](https://w3c.github.io/mediacapture-main/#dfn-fitness-distance) to the requested constraints. This allows the camera to provide a stream with the desired constraints even if such a stream is not natively supported by the camera. For screen and window media `"crop-and-scale"` will downscale the resolution to achieve the shortest fitness distance, but will not crop the video or reduce the frame rate. If `none` is set then the video will not be cropped, downscaled, or have its frame rate reduced. - From c05d55493b07c74683aaded3ed7ab6159c7e37f1 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 19 Sep 2025 10:23:58 +1000 Subject: [PATCH 5/7] Clarify framerate decimation is also allowed for media --- files/en-us/mozilla/firefox/releases/144/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/144/index.md b/files/en-us/mozilla/firefox/releases/144/index.md index 8a9563d5f2980ea..99d216e12d4d9bc 100644 --- a/files/en-us/mozilla/firefox/releases/144/index.md +++ b/files/en-us/mozilla/firefox/releases/144/index.md @@ -63,7 +63,7 @@ Firefox 144 is the current [Beta version of Firefox](https://www.firefox.com/en- - {{domxref("RTCDataChannel")}} instances are now [transferrable objects](/en-US/docs/Web/API/Web_Workers_API/Transferable_objects), and hence can be passed to [workers](/en-US/docs/Web/API/Worker). ([Firefox bug 1209163](https://bugzil.la/1209163)). - The [`closing` event](/en-US/docs/Web/API/RTCDataChannel/closing_event) and the `onclosing()` event handler are now supported on the {{domxref("RTCDataChannel")}} interface. ([Firefox bug 1611953](https://bugzil.la/1611953)). - The {{domxref("MediaDevices/getUserMedia","getUserMedia()")}} and {{domxref("MediaDevices/getDisplayMedia","getDisplayMedia()")}} methods of the {{domxref("MediaDevices")}} interface now support the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint. - This constraint allows developers to crop and downscale video captured from a camera to any resolution they choose, and downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). + This constraint allows developers to crop and downscale video resolution and frame rate captured from a camera to any resolution/frame rate they choose, and downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). From 21e4a5b9833cc605665abedc656d773d0a56ba83 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 19 Sep 2025 10:41:14 +1000 Subject: [PATCH 6/7] Update files/en-us/mozilla/firefox/releases/144/index.md --- files/en-us/mozilla/firefox/releases/144/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/144/index.md b/files/en-us/mozilla/firefox/releases/144/index.md index 99d216e12d4d9bc..7b2eac23c10fdb8 100644 --- a/files/en-us/mozilla/firefox/releases/144/index.md +++ b/files/en-us/mozilla/firefox/releases/144/index.md @@ -63,7 +63,8 @@ Firefox 144 is the current [Beta version of Firefox](https://www.firefox.com/en- - {{domxref("RTCDataChannel")}} instances are now [transferrable objects](/en-US/docs/Web/API/Web_Workers_API/Transferable_objects), and hence can be passed to [workers](/en-US/docs/Web/API/Worker). ([Firefox bug 1209163](https://bugzil.la/1209163)). - The [`closing` event](/en-US/docs/Web/API/RTCDataChannel/closing_event) and the `onclosing()` event handler are now supported on the {{domxref("RTCDataChannel")}} interface. ([Firefox bug 1611953](https://bugzil.la/1611953)). - The {{domxref("MediaDevices/getUserMedia","getUserMedia()")}} and {{domxref("MediaDevices/getDisplayMedia","getDisplayMedia()")}} methods of the {{domxref("MediaDevices")}} interface now support the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint. - This constraint allows developers to crop and downscale video resolution and frame rate captured from a camera to any resolution/frame rate they choose, and downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). + This constraint allows developers to request that the browser return video that matches other constraints, such as resolution and frame rate, even if the requested stream is not supported by the underlying hardware. + The browser may then crop, downscale resolution, and reduce the frame rate, of video captured from the camera, or downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). From 3bbe6d02d7daa0f161a0943634899d016d7e4f11 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 22 Sep 2025 10:18:25 +1000 Subject: [PATCH 7/7] Update files/en-us/mozilla/firefox/releases/144/index.md Co-authored-by: Dipika Bhattacharya --- files/en-us/mozilla/firefox/releases/144/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/mozilla/firefox/releases/144/index.md b/files/en-us/mozilla/firefox/releases/144/index.md index 7b2eac23c10fdb8..1ef3cbad829baee 100644 --- a/files/en-us/mozilla/firefox/releases/144/index.md +++ b/files/en-us/mozilla/firefox/releases/144/index.md @@ -63,8 +63,8 @@ Firefox 144 is the current [Beta version of Firefox](https://www.firefox.com/en- - {{domxref("RTCDataChannel")}} instances are now [transferrable objects](/en-US/docs/Web/API/Web_Workers_API/Transferable_objects), and hence can be passed to [workers](/en-US/docs/Web/API/Worker). ([Firefox bug 1209163](https://bugzil.la/1209163)). - The [`closing` event](/en-US/docs/Web/API/RTCDataChannel/closing_event) and the `onclosing()` event handler are now supported on the {{domxref("RTCDataChannel")}} interface. ([Firefox bug 1611953](https://bugzil.la/1611953)). - The {{domxref("MediaDevices/getUserMedia","getUserMedia()")}} and {{domxref("MediaDevices/getDisplayMedia","getDisplayMedia()")}} methods of the {{domxref("MediaDevices")}} interface now support the [`resizeMode`](/en-US/docs/Web/API/MediaTrackConstraints#resizemode) constraint. - This constraint allows developers to request that the browser return video that matches other constraints, such as resolution and frame rate, even if the requested stream is not supported by the underlying hardware. - The browser may then crop, downscale resolution, and reduce the frame rate, of video captured from the camera, or downscale (but not crop) video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)). + This constraint allows developers to request video that matches other constraints, such as resolution and frame rate, even if the requested constraints are not supported by the underlying hardware. + The browser may then crop, downscale, or reduce the frame rate of the video captured from a camera, or downscale (but not crop) the video captured from a screen or window. ([Firefox bug 1286945](https://bugzil.la/1286945)).