CEF accessing camera without user permission

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF accessing camera without user permission

Postby ramjana » Mon Jul 05, 2021 8:15 am

Hi Experts,

I have a windows application(C++) where I am creating a browser instance. OnBeforeCommandLineProcessing, I am enabling media stream.
command_line->AppendSwitch("--enable-media-stream");

With this I am able to access the camera and mic from the browser instance.
Browser.png
Browser.png (475.46 KiB) Viewed 2462 times


What I notice here though is that before accessing the camera/mic, CEF is not asking for user's permission to access the same.

Is there a way CEF prompts user for permission before accessing camera/mic like how it works in chrome browser?
Chrome browser.png
Chrome browser.png (102.04 KiB) Viewed 2462 times


Kindly suggest,
Thanks!
ramjana
Techie
 
Posts: 15
Joined: Fri Aug 14, 2020 4:08 am

Re: CEF accessing camera without user permission

Postby magreenblatt » Mon Jul 05, 2021 8:29 am

This is only supported by the Chrome runtime currently. You can also follow https://bitbucket.org/chromiumembedded/ ... dia-access
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 31 guests