OpenTok WebRTC And CefGlue Failing Chromium Version Check

811 views
Skip to first unread message

Quincy

unread,
Mar 13, 2013, 1:21:53 AM3/13/13
to cef...@googlegroups.com
So I'm trying to use CefGlue because I heard it supports CEF3 and that supports WebRTC, and maybe it does but when I run I try to run the OpenTok demo (http://www.tokbox.com/opentok/api/demo/v2?session_id=2_MX4xMTI3fn5UdWUgTWFyIDEyIDIxOjU3OjIyIFBEVCAyMDEzfjAuMzAxMDcxODh-) inside the WinForm CefGlue demo I get an error from OpenTok saying I need to use Chrome version 23 or higher.  

The Xilium CefGlue binaries I'm using appear to be based on Chromium 27 (I thought it was 25 but the JS tests I did showed 27), so I'm not sure why OpenTok is refusing???

Is some JS checking they are doing not interpreting the version number right or are they testing and finding no WebRTC support???

Here's what JS tests revealed about what JS thinks the versions are:

CefGlue Winform Browser Demo:
Browser version (full) 27.0.1423.0
Webkit version 537.32
USER AGENT: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.32 (KHTML, like Gecko) Chrome/27.0.1423.0 Safari/537.32

Installed Chrome Browser:
Browser version (full) 25.0.1364.152
Webkit version 537.22
USER AGENT: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22

Anyone have any ideas?

Dmitry Azaraev

unread,
Mar 13, 2013, 3:38:04 AM3/13/13
to cef...@googlegroups.com
Better ask at ceforum.
And looks as more simple run https://apprtc.appspot.com/ which says: "getUserMedia() failed. Is this a WebRTC capable browser?"
Actual problem that you need set this command line key: --enable-media-stream
So you can run
Xilium.CefGlue.Demo.WinForms.exe --enable-media-stream
or
add this key pragmatically in CefApp.OnBeforeCommandLineProcessing.



--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best regards,
   Dmitry

Quincy

unread,
Mar 13, 2013, 8:49:47 AM3/13/13
to cef...@googlegroups.com
Dmitry, that was great and got me over that hurdle, but on apprtc.appspot.com I now get "Failed to get access to local media.  Error code was 1."  And a permission denied error on tokbox.  I don't see an in browser camera/audio permission dialog coming up so I assume the issue is that nothing is telling CEF it's ok to share my audio/video and so it just fails. I can't find any docs on how to tell CEF it's ok to share audio/video. Or maybe it's something else.  Do you know?

Thanks.

Dmitry Azaraev

unread,
Mar 13, 2013, 9:02:42 AM3/13/13
to cef...@googlegroups.com
I'm trying with 3.1423.1135 build.In CEF you don't need to allow/deny access, if i'm rightly understand.
So - check cef.log if you use Xilium.CefGlue.Demo.WinForms.exe or debug.log (probably need set max verbosity) if use cefclient.exe.
And ask at CEF forum, 'cause I'm doesn't have real web cam installed, but looks that samples works, as expected.


--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best regards,
   Dmitry

Benjamin 'Quincy' Cabell

unread,
Mar 13, 2013, 10:10:50 AM3/13/13
to cef...@googlegroups.com
Thanks Dmitry, I posted over on CEF forums.  

Since my post is still unapproved and I can't edit it over there I'll share this for anyone else who comes along in future.  I found the relevant cef.log entries and they are:

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)


[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)

Can't find much info on rtc_video_capture_delegate but NOT IMPLEMENTED doesn't sound good. :)




--
You received this message because you are subscribed to a topic in the Google Groups "CefGlue" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cefglue/EnEDCMCafxo/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to cefglue+u...@googlegroups.com.

Dmitry Azaraev

unread,
Mar 13, 2013, 10:57:32 AM3/13/13
to cef...@googlegroups.com
Just wait for comments from Marshall. And also put link to this post. Thanks.

PS: It is probably good idea to try latest R1138. (i'm working on build, so i think it will be available tomorrow).

Quincy

unread,
Mar 15, 2013, 12:02:21 AM3/15/13
to cef...@googlegroups.com
For anyone who sees this in future, the issue was fixed in a patch and I just needed to update to the recently released 1138.  Thanks Marshall and Dmitry.


On Wednesday, March 13, 2013 1:21:53 AM UTC-4, Quincy wrote:
Reply all
Reply to author
Forward
0 new messages