[Webkit-unassigned] [Bug 228772] New: getUserMedia() constraints incorrectly interpreted
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 4 05:29:41 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=228772
Bug ID: 228772
Summary: getUserMedia() constraints incorrectly interpreted
Product: WebKit
Version: Safari 14
Hardware: Mac (Intel)
OS: macOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: milen.yordanov at gmail.com
CC: youennf at gmail.com
Tested with Safari 14.1.2 (mac mini 2018, macOS 11.5.1), Webcam Logitech C910
The issue can be reproduced with: https://jsfiddle.net/milen/srjkng6u/
The steps are:
1) Click the button 'Add Cam HD'.
The expected result: the ideal video should be 1280x720 (16/9) and not smaller than 160x120.
The actual result: video is 160x90.
----
Safari incorrectly interprets these constraints
video: {
width: {min: 160},
height: {min: 120, ideal: 720},
aspectRatio: {ideal: 16/9},
};
but this works fine
video: {
height: {min: 120, ideal: 720},
aspectRatio: {ideal: 16/9},
};
I don't expect just adding "width: {min: 160}" to mess up the HD constraints.
The above cases work fine in Chrome 92.
--
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/20210804/57f4eec6/attachment.htm>
More information about the webkit-unassigned
mailing list