[Webkit-unassigned] [Bug 227933] New: applyConstraints recaptures camera and creates a lag
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 13 17:41:51 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=227933
Bug ID: 227933
Summary: applyConstraints recaptures camera and creates a lag
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: msach22 at gmail.com
CC: youennf at gmail.com
When using the applyConstraints API on getUserMedia, it seems like Safari is recapturing from the camera. You will also see a lag in the video rendering each time applyConstraints is called.
I've set up a basic JSFiddle that helps repro this:
https://jsfiddle.net/3jztwxc6/
```
(async () => {
const stream = await navigator.mediaDevices.getUserMedia({audio: true, video: true});
const videoElement = document.getElementById("gum");
videoElement.srcObject = stream;
const videoTrack = stream.getVideoTracks()[0];
const constraints = videoTrack.getConstraints();
constraints.frameRate = { max: 20, min: 20 };
setTimeout(() => {
videoTrack.applyConstraints(constraints);
}, 5000);
})();
```
--
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/20210714/3e082560/attachment-0001.htm>
More information about the webkit-unassigned
mailing list