-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 13.4 navigator.mediaDevices.enumerateDevices resulting in hasWebcam = false #88
Comments
We're seeing similar behavior on MacOS Safari 13.1, with |
This happens in Safari 13.1 on iOS 13.4, iPadOS 13.4 and MacOS 10.15.4. Whereas it does not happen on iPadOS 13.3.1. But it only happens in Safari 13.1 when camera is not set to "allow" in website settings. So I guess that from now on one can only get device information after access has been granted. |
Still seeing this on iOS 13.4.1 |
Indeed same here one IOS 13.4.1 |
I did some workaround in my own code and removed DetectRTC dependency. Indeed Safari first needs permission (getUserMedia) before enumerateDevices returns the correct data. |
iOS 13.5 and subsequent versions don't seem to exhibit this issue anymore. |
Hi, folks!
We are having issues with
DetectRTC.hasWebcam
. DetectRTC is callingnavigator.mediaDevices.enumerateDevices
multiple times. That conflicts with a strange behaviour/bug on iOS 13.4. DetectRTC loops trough the media devices after 1+n call ofnavigator.mediaDevices.enumerateDevices
so webkit only returns MediaDeviceInfo havingkind: "audioinput"
. This leads toDetectRTC.hasWebcam = false
.To reproduce this open the Safari Remote Webinspector and execute
navigator.mediaDevices.enumerateDevices();
in the console.First Call:
Second call:
The text was updated successfully, but these errors were encountered: