WebRTC (getUserMedia) does not work on CEF. But it works on Chrome. Any ideas?

I have a bare-bone video chat page that works in Chrome. Kind of like apprtc.appspot.com But I want to embed this function in a C ++ / C # application.

So, I tried the Chromium Embedded Framework (in short, CEF using cefclient.exe) and WebRTC (getUserMedia), but connecting to webcams doesn't work at all. I get the error "Could not access local environments. Error code: 1."

But the CEF wiki claims that WebRTC has been added to CEF. The CEF version I'm trying to do is 3.1364.1094 for Windows.

Any ideas? Does WebRTC really work with CEF? Perhaps I may have skipped some steps to get WebRTC to work on CEF.

Another observation is that the CEF does not show the permission bar when starting the WebRTC webcam demo. Hope this could be the key.

+4
source share
1 answer

You can pass a list of command line arguments to CEF. I think the one you want could be:

--enable-media-stream

although you can also try

--enable-usermedia-screen-capturing

+2
source

All Articles