cef 74.0.3729.157 screen capture: Permission denied

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

cef 74.0.3729.157 screen capture: Permission denied

Postby fofcn » Mon Jun 10, 2019 1:40 am

I've added command line "--enable-media-stream" and "-enable-usermedia-screen-capturing", but when i started sharing screens, i got "Permission denied" error,Has anyone ever had this problem?

I can get camera images and microphone sounds!
fofcn
Newbie
 
Posts: 2
Joined: Sat May 11, 2019 10:33 am

Re: cef 74.0.3729.157 screen capture: Permission denied

Postby linuxcef9 » Thu Sep 03, 2020 1:19 pm

I am running into same issues with cef_binary_85.2.11+g0202816+chromium-85.0.4183.83_windows64_client from (http://opensource.spotify.com/cefbuilds ... nt.tar.bz2)

Steps to repro:

1) Get standalone cefclient.exe from above link

2) cefclient.exe --enable-media-stream --enable-usermedia-screen-capturing --url=https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/

3) Click on "Share your screen". You will see the error.

4) Reload the page. Right click on page and click on "Show DevTools Console". In console, type below code :

navigator.mediaDevices.getDisplayMedia({video: true}).then(stream => {
onGettingSteam(stream);
}, getDisplayMediaError).catch(function(error){console.log(error);});
You will see the same error

I can see similar issue raised here : https://bitbucket.org/chromiumembedded/ ... sed-screen

What am I missing? Are there any other flags required?
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm

Re: cef 74.0.3729.157 screen capture: Permission denied

Postby linuxcef9 » Thu Sep 03, 2020 1:36 pm

Getting similar error with : https://janus.conf.meetecho.com/screensharingtest.html

The error comes from this line : https://github.com/meetecho/janus-gatew ... s.js#L2338
and it uses GetDisplayMedia API similary.
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm

Re: cef 74.0.3729.157 screen capture: Permission denied

Postby magreenblatt » Thu Sep 03, 2020 2:12 pm

Maybe "--use-fake-ui-for-media-stream" from https://bitbucket.org/chromiumembedded/cef/issues/2993
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: cef 74.0.3729.157 screen capture: Permission denied

Postby linuxcef9 » Thu Sep 03, 2020 2:18 pm

Perfect. Thanks a lot marshall, that worked!
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 4 guests