[Webkit-unassigned] [Bug 214689] New: getUserMedia aspectRatio overconstrained in portrait orientation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 23 09:23:31 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=214689
Bug ID: 214689
Summary: getUserMedia aspectRatio overconstrained in portrait
orientation
Product: WebKit
Version: Safari 13
Hardware: iPhone / iPad
OS: iOS 13
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: kpd400 at gmail.com
CC: youennf at gmail.com
Created attachment 405046
--> https://bugs.webkit.org/attachment.cgi?id=405046&action=review
Demo of aspect ratio bug in portrait mode
I have a use case that requires me to get a 4:3 video from getUserMedia on iPad / iOS devices. I can do this reliably when the device is in landscape by setting the `aspectRatio` constraint to 4/3 but when the device is in portrait (thus requiring a relative 3/4 aspect ratio) an `OverconstrainedError: Invalid constraint` error is thrown.
If I specify exact dimensions, e.g. 640x480 in landscape or 480x640 in portrait, I am able to obtain a 4:3 video regardless of orientation but this requires exact dimensions which is problematic when trying to obtain a maximum camera resolution that may or may not be supported by the device.
I am using an iPad Pro (12.9-inch) (3rd generation) on iPadOS 13.6 and I have attached a demo to reproduce the issue when tested on a mobile device in 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/20200723/651d0542/attachment.htm>
More information about the webkit-unassigned
mailing list