-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
mediaDevices.enumerateDevices broken in iframe #7565
Comments
Linking to #7230 |
In NW2 there is better control for device access. You are loading code from remote domain in iframe to access local devices, which is blocked by default. This can be allowed by using chrome.contentSettings api . So close as a non-issue for now. |
For the record, regardeless of the Chrome extenion contentSettings, you need to add |
I have the same problem. Same scenario but NWJS version 0.52.2 In order to get the devices name --use-fake-ui-for-media-stream is needed in chromium_flags but then screenSharing is not correctly working. Am I missing something? |
NWJS Version : from 0.45.2 -> 0.48.1
Operating System : reproduced on Linux and Windows 10
Expected behavior
It should be possible to get a complete list of media devices by calling navigator.mediaDevices.enumerateDevices() after obtaining permission from navigator.mediaDevices.getUserMedia().
Actual behavior
In the iframe, the list of media devices returned is incomplete and contains no label and no deviceId, as if we didn't have the permission to list media devices.
How to reproduce
Partial workaround: adding --use-fake-ui-for-media-stream in chromium_flags allows it to work again in iframe, but other things break like screen sharing.
Just tested with --disable-features=nw2 which also seems to restore expected behavior in iframe.
The text was updated successfully, but these errors were encountered: