-
Notifications
You must be signed in to change notification settings - Fork 22.9k
FF144 MediaDevices.getUserMedia() method allows resizeMode constraint #41152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FF144 MediaDevices.getUserMedia() method allows resizeMode constraint #41152
Conversation
Preview URLs Flaws (2)URL:
External URLs (1)URL:
(comment last updated: 2025-09-22 00:20:33) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This pull request has merge conflicts that must be resolved before it can be merged. |
Co-authored-by: Dipika Bhattacharya <[email protected]>
4881282
to
c05d554
Compare
Thanks for the review @dipikabh . I've thought about this some more and realized my initial answer wasn't very precise. Can you please re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for revising this! This is a much better version - it's clarifying that it's the browser that may crop/downscale the video. I always appreciate it when we spell out the "doer" :)
Co-authored-by: Dipika Bhattacharya <[email protected]>
Thanks for the review and feedback @dipikabh - changes accepted! |
FF144 added a new constraint parameter
resizeMode
for use withMediaDevices.getUserMedia()
.This allows a developer to specify whether the video from the camera should be cropped and/or downscaled to match other constraints, which may be natively supported by the camera - essentially gives them what they ask for rather than what the camera is capable of delivering.
This adds a release note.
Related docs work can be tracked in #41132