| Summary: | getDisplayMedia video constraints not taking effect | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Justin <justin.martinez> |
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | chris.pettet, ltsg0317, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 13 | ||
|
Description
Justin
2023-06-28 10:39:22 PDT
I also tried this with 17.0 Beta and seeing the same results. I tried this with Safari Technical Preview 180 and Safari Version 17.0 (18616.1.27.111.22, 18616) and saw the same results. I also encountered this problem at the same time found a hard code solution, after the video rendering, you can modify the resolution by applyConstraints, but I do not think it is a good way to deal with it, I hope to deal with this bug soon! This is the demo: https://jsfiddle.net/ltsg0317/yh5rnfa8/11/ On STP, the initial getSettings() might return 480, but it should later be updated to 1080 (a configuration change event should be fired). The reason is that the promise resolves before we are capturing the first video frame, which gives us the actual video frame size. Once we have the size, we are correctly applying the constraints (after https://bugs.webkit.org/show_bug.cgi?id=263015 fix). I am tentatively closing as fixed by bug 263015. Please reopen if the initially computed getSettings cause some issues. *** This bug has been marked as a duplicate of bug 263015 *** |