Page 1 of 1

Setting the camera to be used with WebRTC

PostPosted: Mon Dec 05, 2016 11:14 am
by crtxl
Hi,

I am using libcef (via CefSharp) for a WinForms-program. I need to use version 47.0.4.
Is it possible for me to set the camera (and microphone) which is used for WebRTC from my program?
My idea is to use the preferences which I can access via "IRequestContext.SetPreference". Can these values be changed at runtime?
Additionally, how can I let the "ask for permission" dialog pop up? In regular Chrome it appears when I go to a site, however, not in CEF. Is this a preference as well?
And lastly, can anybody give me an example how I can add an exeception to the preference "profile.content_settings.exceptions.media_stream_camera"? This might be a more C#-related question. I don't know.

Any help is really appreciated. I am searching and experimenting for days now :(


thansk in advance,
Daniel