Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Enable CEF WebRTC?

I am trying to enable WebRTC inside of the CEF and I am not coming right. This is what I have tried so far.

In the file "WebBrowserSingleton.cpp" under the folder "Source/Runtime/WebBrowser/Private/" I made the following changes.

 // CEFBrowserApp implements application-level callbacks.
 CEFBrowserApp = new FCEFBrowserApp;
 //QWD - Added command line switch with value here.
 CefRefPtr<CefCommandLine> command_line = CefCommandLine::CreateCommandLine();
 command_line->AppendSwitchWithValue("use-fake-ui-for-media-stream", "1");
 command_line->AppendSwitchWithValue("enable-media-stream", "1");
 //QWD - Added command line switch here.
 FCommandLine::Append(TEXT(" --enable-media-stream=1 --use-fake-ui-for-media-stream=1 "));
 CEFBrowserApp->OnRenderProcessThreadCreated().BindRaw(this, &FWebBrowserSingleton::HandleRenderProcessCreated);
 // Specify CEF global settings here.
 CefSettings Settings;
 Settings.no_sandbox = false;                    //QWD changed this to false as it was true
 Settings.command_line_args_disabled = false;    //QWD changed this to false as it was true

But when I load up the CEF Browser and point it to this URL: https://test.webrtc.org/

I get the error indicated in the image below. This typically indicates that the WebRTC options are not enabled and those command line switches are supposed to handle that.

WebRTC Test Error

Product Version: UE 4.20
capture.png (92.3 kB)
more ▼

asked Oct 08 '18 at 02:01 PM in C++ Programming

avatar image

649 31 10 42

avatar image ClaudioPiccinni Mar 13 '19 at 01:19 PM

Hello, it would be very interesting to know if you ever succeeded in enabling WebRTC in CEF, as I'm trying to do the same.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question