如何解决CEF 摄像头和音频支持 WebRTC
我想问一下,在Android和iOS上,CEF版本3.3071.1611是否可以通过WebRTC激活摄像头和音频。 我使用 UnrealEngine 并希望找到一种方法来通过该应用程序创建这样的聊天。我的 C++ 知识并不丰富。这就是为什么我在投入数小时的时间使其成为可能之前询问的原因。
信息:
版本:CEF 3.3071.1611
使用 Source Engine 4.26 构建
测试:https://test.webrtc.org/
返回:“无法访问您计算机的摄像头和麦克风(NotAllowedError)”
到目前为止我尝试过的:
#if WITH_CEF3
// The FWebBrowserSingleton must be initialized on the game thread
check(IsInGameThread());
// Provide CEF with command-line arguments.
#if PLATFORM_WINDOWS
CefMainArgs MainArgs(hInstance);
#else
CefMainArgs MainArgs;
#endif
bool bVerboseLogging = FParse::Param(FCommandLine::Get(),TEXT("cefverbose")) || FParse::Param(FCommandLine::Get(),TEXT("debuglog"));
// CEFBrowserApp implements application-level callbacks.
CEFBrowserApp = new FCEFBrowserApp;
CefRefPtr<CefCommandLine> cef_commandLine = CefCommandLine::CreateCommandLine();
cef_commandLine->AppendSwitchWithValue("use-fake-ui-for-media-stream","1");
cef_commandLine->AppendSwitchWithValue("enable-media-stream","1");
cef_commandLine->AppendSwitchWithValue("enable-usermedia-screen-capture","1");
cef_commandLine->AppendSwitchWithValue("enable-speech-input","1");
FCommandLine::Append(TEXT("--enable-media-stream=1 --use-fake-ui-for-media-stream=1 --enable-speech-input=1 --enable-usermedia-screen-capture=1"));
CEFBrowserApp->OnRenderProcessThreadCreated().BindRaw(this,&FWebBrowserSingleton::HandleRenderProcessCreated);
// Specify CEF global settings here.
CefSettings Settings;
Settings.no_sandbox = false;
Settings.command_line_args_disabled = false;
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。