-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
getDisplayMedia with Chrome 72 throwing Not Allowed #16513
Comments
This behavior isn't expected for Electron's case. If we were to implement the plumbing required for this to work we would implement it similar to |
Interesting. I understand the previous perspective on this feature but it is now part of the WebRTC standards and no longer a Chrome-specific capability implemented through extensions. It sounds strange to have an official W3C "stable" API that needs to be rebuilt via private SDKs. Certainly makes sense in the short-term, but I would assume the long-term path should be: the official API works, but developers can build a custom UI instead if they like? |
FYI even with 5.0.0-beta.3 which includes the fix this is still not working throwing NotAllowedError: Permission denied. |
@brenca ☝️ |
@brenca @sofianguy @codebytere could you reopen and make sure this isn't marked as fixed in the release notes as I just tested again in beta 5 and it is still throwing NotAllowedError: Permission denied. I'm happy to help fix it but I'm not an expert in the native binding behind it |
Haven't confirmed but re-opening, @brenca can you double check this? Feel free to close again if the fix has indeed been applied successfully |
Hi any update on this or is there an alternative place to track status? I am on Chrome 73.0.3683.90 on Android 8.0.0. and the same exception not allowed is thrown. Thanks |
Hi @connetcom, Electron doesn't run on Android so we can't possibly be responsible for whatever issue you're running into. You might have better luck at https://crbug.com. |
Thanks for the link and sorry i had somehow shifted into the wrong thread as i was looking at a bunch of stuff at the same time and did not realize that i was on electron. |
Solution: https://electronjs.org/docs/api/desktop-capturer |
I agree the above mentioned link states a correct workaround but it uses the long supported DesktopCapture. The topic here is about supporting a now standard WebRTC API. |
Is there any update for this? Would be great to be able to use the new WebRTC API for screensharing. |
Awesome! Thanks so much. |
Also here https://github.com/hokein/electron-sample-apps/tree/master/desktop-capture is example of custom screen picker |
For a noob like me, how do I make those changes that @WesselKroos sugests? ty |
I think the issue is that the picker view (screenshot in this issue description) used in the standard w3c getDisplayMedia is implemented in chromium/src/chrome/browser/ui/views |
@WesselKroos kudos. I had to butcher your code to inject it into 3rd party iframe... but I got it working. Cheers. |
@WesselKroos I think you should wrap it in an npm package. |
in electron 9.2.0, I'm using
|
Has anyone successfully used the polyfill mentioned above with |
This comment was marked as off-topic.
This comment was marked as off-topic.
hey, regarding contextBridge and not allowing streams, is there any reference in the electron docs about it? I've run into the same problem upon upgrading my electron app and am trying to resolve it. Following https://www.electronjs.org/docs/latest/api/desktop-capturer I get upd: I managed to solve (bypass?) this issue by not returning a media stream from my render but returning a source id and requesting user media on the web app side instead. Probably it’s the intended behavior right now, dunno, hopefully this info will help someone |
node_modules/.bin/electron --version
: v5.0.0-nightly.20190107node_modules/.bin/electron --version
on last known working Electron version (if applicable): neverExpected Behavior
Using navigator.mediaDevices.getDisplayMedia({ video: true }), a native screen picker should appear.
Actual behavior
The following error is thrown: NotAllowedError: Permission denied
Screenshots
![image](https://user-images.githubusercontent.com/1120050/51625551-71736500-1f0b-11e9-9a95-1406cad95046.png)
Expected dialog
The text was updated successfully, but these errors were encountered: