RESOLVED CONFIGURATION CHANGED 178115
Support ideal constraints for getUserMedia
https://bugs.webkit.org/show_bug.cgi?id=178115
Summary Support ideal constraints for getUserMedia
youenn fablet
Reported 2017-10-09 20:30:54 PDT
According https://bugs.webkit.org/show_bug.cgi?id=178109, WebKit might not always handle properly 'ideal' constraints.
Attachments
Dag-Inge Aas
Comment 1 2019-09-02 04:27:38 PDT
Just wanted to bump this. All the other browsers support ideal, which makes switching camera effortless for us, as our users frequently change from laptop mode to docked mode (with external camera attached). We could pick up the error here and re-run getUserMedia with the default camera, but it would have to be a workaround just for Safari, so I would rather prefer spec-compliance here. Is there any timeline for implementing the ideal constraint?
youenn fablet
Comment 2 2020-06-26 05:59:37 PDT
Since we now have resizing being done, I would hope ideal constraints are correctly supported now. Daginge, do you still have issues with ideal constraints or can we close that issue?
youenn fablet
Comment 3 2020-06-26 07:51:25 PDT
Actually, https://bugs.webkit.org/show_bug.cgi?id=210932 might be one issue along those lines.
Dag-Inge Aas
Comment 4 2020-07-29 04:52:35 PDT
As far as I can see, ideal constraints when selecting getUserMedia works as expected now. If I have selected a camera by deviceId, and it doesn't match, I get the default device available. Kinda annoying that deviceIds are not persistent across sessions, so if the user refreshes, you have to select the device you want again in that session. Usually we would store the preferred deviceId in localStorage and attempt to use that next session. Separate bug I guess? There are ofc. some privacy concerns here also.
youenn fablet
Comment 5 2020-07-29 05:51:29 PDT
> Kinda annoying that deviceIds are not persistent across sessions, so if the > user refreshes, you have to select the device you want again in that > session. Usually we would store the preferred deviceId in localStorage and > attempt to use that next session. This should work as you expect, with IDB instead of localStorage if possible :) Not sure exactly why this is not working for you. third party iframe? Might be worth another bug.
youenn fablet
Comment 6 2020-07-29 05:51:55 PDT
Closing as configuration changed.
youenn fablet
Comment 7 2020-07-29 05:52:43 PDT
I think there might still be some corner cases with ideal constraints but we can treat them as follow-up bugs if it becomes a practical issue.
Note You need to log in before you can comment on or make changes to this bug.