[Webkit-unassigned] [Bug 214689] getUserMedia aspectRatio overconstrained in portrait orientation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 24 07:34:13 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=214689

--- Comment #3 from youenn fablet <youennf at gmail.com> ---
In general, I would recommend to use ideal constraints for getUserMedia.
Then, you can check the results and use applyConstraints to resize at will.

Would the following workaround work for you:
- Call getUserMedia with aspectRatio 4/3 as ideal constraints whatever the orientation.
- Use applyConstraints to flip height and width in case of portrait mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200724/37d955da/attachment-0001.htm>


More information about the webkit-unassigned mailing list