CefGlue, Cef, and WebRTC - Permission Denied Error

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

Moderator: fddima

CefGlue, Cef, and WebRTC - Permission Denied Error

Postby brian2314245 » Wed Mar 13, 2013 7:33 am

So I'm trying to use CefGlue to give me a Chromium control with working WebRTC.

Dmitry over on the Google cefglue forum got me going with "--enable-media-stream" but nothing actually seems to work. Going to apprtc.appspot.com I get the error "Failed to get access to local media. Error code was 1." And over at the OpenTok demo page I get a similar-ish "Permission Denied" from their JS API.

I assume the issue is that in the Chromium browser I would get a pop-up permission dialog allowing me to grant access and here with Cef without that dialog it just fails instead. I may be stupid but I'm not seeing anything that would let me programmatically grant that permissions.

Anyone know what I should do?
brian2314245
Newbie
 
Posts: 3
Joined: Wed Mar 13, 2013 7:26 am

Re: CefGlue, Cef, and WebRTC - Permission Denied Error

Postby fddima » Wed Mar 13, 2013 10:00 am

Linked original topic https://groups.google.com/forum/#!topic ... nEDCMCafxo .
It has some sensitive information:
Code: Select all
For OpenTok:

[0313/081008:INFO:CONSOLE(23)] "WebSocket message recieved: {"type":1018,"payload":{"payload":{"timestamp":"1363176606726","message":"ping!"}}}", source: http://static.opentok.com/webrtc/v2.0/js/TB.min.js (23)
[0313/081008:ERROR:rtc_video_capture_delegate.cc(88)] NOT IMPLEMENTED
[0313/081008:INFO:CONSOLE(23)] "OT.rtc.Publisher.onStreamAvailableError Permission Denied", source: http://static.opentok.com/webrtc/v2.0/js/TB.min.js (23)

And with apprtc.appspot.com:

[0313/081910:INFO:CONSOLE(165)] "Requested access to local media with mediaConstraints:
  "{"mandatory":{},"optional":[]}"", source: https://apprtc.appspot.com/?r=98616905 (165)
[0313/081910:ERROR:rtc_video_capture_delegate.cc(88)] NOT IMPLEMENTED
[0313/081910:INFO:CONSOLE(311)] "Failed to get access to local media. Error code was 1", source: https://apprtc.appspot.com/?r=98616905 (311)
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: CefGlue, Cef, and WebRTC - Permission Denied Error

Postby magreenblatt » Thu Mar 14, 2013 10:06 pm

What CEF3 version/revision are you using? It was most recently fixed in trunk revision 1131.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CefGlue, Cef, and WebRTC - Permission Denied Error

Postby brian2314245 » Thu Mar 14, 2013 11:00 pm

Thanks, I was using R1135 but I just got R1138 and it's working now.

Given that it was so recently not working, should the WebRTC in CEF be regarded as unreliable or do I just need to make sure it hasn't been broken with an update before upgrading the CEF I'm using in my app?
brian2314245
Newbie
 
Posts: 3
Joined: Wed Mar 13, 2013 7:26 am

Re: CefGlue, Cef, and WebRTC - Permission Denied Error

Postby fddima » Fri Mar 15, 2013 4:26 am

brian2314245 wrote:Thanks, I was using R1135 but I just got R1138 and it's working now.

Given that it was so recently not working, should the WebRTC in CEF be regarded as unreliable or do I just need to make sure it hasn't been broken with an update before upgrading the CEF I'm using in my app?

I'm not sure that i'm understand your's question.
CEF 3.1436.1138 - it is '1436' chrome internal version, it changed not with every cef update.
CEF 3.1423.1135 - it is little older chrome version.
both of them match to some versions of chrome from development branches.
So anything can be broken in future, and testing required features - is not bad idea.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: CefGlue, Cef, and WebRTC - Permission Denied Error

Postby magreenblatt » Fri Mar 15, 2013 9:27 am

brian2314245 wrote:Thanks, I was using R1135 but I just got R1138 and it's working now.

Given that it was so recently not working, should the WebRTC in CEF be regarded as unreliable or do I just need to make sure it hasn't been broken with an update before upgrading the CEF I'm using in my app?

Testing is always a good idea. You're using trunk which is an unstable development branch. Also, CEF contains no automated WebRTC tests so it's possible we won't notice when it breaks (feel free to report any problems that you notice). This is also why WebRTC is behind a feature flag instead of enabled by default.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CefGlue, Cef, and WebRTC - Permission Denied Error

Postby brian2314245 » Fri Mar 15, 2013 11:31 am

Off topic, but is there a way to control which camera is used for WebRTC? I see nothing in a real Chrome browser, nothing in any WebRTC JS libraries, and find nothing relevant in Googling. I have to believe there's a way to do it.
brian2314245
Newbie
 
Posts: 3
Joined: Wed Mar 13, 2013 7:26 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 55 guests

cron