How to Enable Camera in CEF?

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

How to Enable Camera in CEF?

Postby satish » Sat Apr 05, 2014 1:39 am

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
satish
Newbie
 
Posts: 1
Joined: Thu Apr 03, 2014 7:36 am

Re: How to Enable Camera in CEF?

Postby magreenblatt » Sat Apr 05, 2014 2:25 pm

You need to pass the "--enable-media-stream" command-line flag. You can test with http://apprtc.appspot.com/.
magreenblatt
Site Admin
 
Posts: 8401
Joined: Fri May 29, 2009 6:57 pm

Re: How to Enable Camera in CEF?

Postby pete » Thu Dec 11, 2014 11:16 am

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)
Thanks for CEF Project.
pete
Newbie
 
Posts: 1
Joined: Thu Dec 11, 2014 10:49 am
Location: Shanghai, China

Re: How to Enable Camera in CEF?

Postby chandimab » Sun Mar 04, 2018 11:18 am

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 :)
chandimab
Newbie
 
Posts: 1
Joined: Sat Mar 03, 2018 2:01 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 2 guests