Page 1 of 1

How to Enable Camera in CEF?

PostPosted: Sat Apr 05, 2014 1:39 am
by satish
Hi to CEF Members,

I want to create an application for group video chat. So i found http://www.webrtc.org/ and https://code.google.com/p/chromiumembedded/ is great solution.

But one thing i didn't solve, that is "How we enable Camera and Mike" ? I test CEF sample , thire also not found how we will camera will turn on. Look this following picture

Image

Please help to how to enable Camera..

Thanks
Satish

Re: How to Enable Camera in CEF?

PostPosted: Sat Apr 05, 2014 2:25 pm
by magreenblatt
You need to pass the "--enable-media-stream" command-line flag. You can test with http://apprtc.appspot.com/.

Re: How to Enable Camera in CEF?

PostPosted: Thu Dec 11, 2014 11:16 am
by pete
Thanks very much for magreenblatt's reply! :)
I'm using cefpython and find how to use camera, change code like below:
Code: Select all
g_commandLineSwitches = {
  "enable-media-stream": "",
}

cefpython.Initialize(g_applicationSettings, g_commandLineSwitches)

Re: How to Enable Camera in CEF?

PostPosted: Sun Mar 04, 2018 11:18 am
by chandimab
pete wrote:Thanks very much for magreenblatt's reply! :)
I'm using cefpython and find how to use camera, change code like below:
Code: Select all
g_commandLineSwitches = {
  "enable-media-stream": "",
}

cefpython.Initialize(g_applicationSettings, g_commandLineSwitches)



Thank you very much! This helped me a lot :)