Bug 228772
| Summary: | getUserMedia() constraints incorrectly interpreted | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | milen <milen.yordanov> |
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | eric.carlson, jer.noble, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 11 | ||
milen
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/81789664>