-
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
When webpage tries to access cam or microphone it asks for user permission #7229
Comments
There was the Chrome flag
but it seems this flag no longer works. I get the following message when running Chrome like this:
|
Yes, I confirm that flag does not work. However in older nwjs versions, flag was not needed anyway (e.g. in 0.41.3) |
How about this flag:
Could work for local files served over file:// protocol as I understand it. Reference here. |
--use-fake-ui-for-media-stream doesn't help either. @rogerwang is there a chance you can take a look at this issue within the next two weeks? Thanks! |
Ah yes, seems that wasn't it either. But for me this works:
|
Sure will fix this soon.
…On Tue, Nov 26, 2019 at 9:35 PM Zoran Krnetic ***@***.***> wrote:
--use-fake-ui-for-media-stream doesn't help either. @rogerwang
<https://github.com/rogerwang> is there a chance you can take a look at
this issue within the next two weeks?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7229?email_source=notifications&email_token=AABIMGLJU5W5ZFNRGTVXZLDQVUQYPA5CNFSM4JQBJUD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFGAMYQ#issuecomment-558630498>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIMGN4H77YAVC6QEYXY5TQVUQYPANCNFSM4JQBJUDQ>
.
|
For now you can use |
@rogerwang thank you very much! We really appreciate your commitment to this awesome project. |
BTW --disable-features=nw2 doesn't help. It prevents showing consent to user, but the cam and microphone does not work when used. |
The switch works for me — I tested the website and the webcam works with the switch. |
You are right! I re-tested and it works with --disable-features=nw2. Was my mistake... |
@rogerwang just so that I can plan our release, do you know when fix for this is supoosed to be released? Thanks! |
@krneticz as the nw1 mode is working, I'm planning a real fix for this in nw2 mode. It would include a new API with which the app's code can control whether it's enabled or not on the fly. The webcam and microphone should not be enabled by default. Currently I don't have any schedule for it. |
@rogerwang makes sense. Thanks for the quick response! |
This blocks #7230 |
This is fixed in git and will be available in the next nightly build. |
Ref #6492 |
For me tested on Ubuntu 20.04 with the v0.73 sdk release i still need both:
and
|
NWJS Version : 0.42.5
Operating System : Windows
Expected behavior
When loaded webpage tries to access cam or microphone no user permission is requested. This is how it worked in older nwjs e.g. in 0.40.2 (did not try all releases between 0.40.2 and 0.42.5, but it did not ask for permission in 0.41.3).
Actual behavior
When loaded webpage tries to access cam or microphone it asks for user permission. This is a problem for us at seeyoulink.com, since we are making software for seniors, disabled and tech-illiterate, so this extra step of approval is very hard for them and most of them won't be able to approve properly or will get confused.
How to reproduce
Load any page that uses webcam and microphone e.g. https://webcammictest.com/
The text was updated successfully, but these errors were encountered: