Closed bigcwu closed 1 year ago
Describe the bug 【Bug描述】
我在main函数中和添加如下代码 config.addCommandLineSwitch("enable-system-flash"); // flash config.addCommandLineSwitch("enable-speech-input"); //语音输入 config.addCommandLineSwitch("enable-media-stream"); config.addCommandLineSwitch("disable-gpu"); config.addCommandLineSwitch("ignore-certificate-errors"); config.addCommandLineSwitch("enable-usermedia-screen-capturing"); config.addCommandLineSwitch("enable-experimental-web-platform-features"); 程序不能正常加载摄像头的视频流“https://vvclass.shinevv.com/?s=eyJyb29tX2lkIjoiMTA0NDk1IiwgInBhc3N3b3JkIjoiMjIyMjIyMjIiLCAibmlja05hbWUiOiLmiJHmmK%2FlsI%2Fnmb0iIH0%3D”
config.addCommandLineSwitch("enable-system-flash"); // flash config.addCommandLineSwitch("enable-speech-input"); //语音输入 config.addCommandLineSwitch("enable-media-stream"); config.addCommandLineSwitch("disable-gpu"); config.addCommandLineSwitch("ignore-certificate-errors"); config.addCommandLineSwitch("enable-usermedia-screen-capturing"); config.addCommandLineSwitch("enable-experimental-web-platform-features");
另外我在CefViewBrowserApp::OnBeforeCommandLineProcessing函数添加如下代码也不生效: command_line->AppendSwitch("enable-system-flash"); // flash command_line->AppendSwitch("enable-speech-input"); //语音输入 command_line->AppendSwitch("enable-media-stream"); command_line->AppendSwitch("disable-gpu"); command_line->AppendSwitch("ignore-certificate-errors"); command_line->AppendSwitch("enable-usermedia-screen-capturing"); command_line->AppendSwitch("enable-experimental-web-platform-features");
command_line->AppendSwitch("enable-system-flash"); // flash command_line->AppendSwitch("enable-speech-input"); //语音输入 command_line->AppendSwitch("enable-media-stream"); command_line->AppendSwitch("disable-gpu"); command_line->AppendSwitch("ignore-certificate-errors"); command_line->AppendSwitch("enable-usermedia-screen-capturing"); command_line->AppendSwitch("enable-experimental-web-platform-features");
To Reproduce 【复现步骤】
void SimpleApp::OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line) { command_line->AppendSwitch("enable-system-flash"); // flash command_line->AppendSwitch("enable-speech-input"); //语音输入 command_line->AppendSwitch("enable-media-stream"); command_line->AppendSwitch("disable-gpu"); command_line->AppendSwitch("ignore-certificate-errors"); command_line->AppendSwitch("enable-usermedia-screen-capturing"); command_line->AppendSwitch("enable-experimental-web-platform-features"); }
...
Screenshots 【截图】
Environment 【BUG产生的环境】
Additional context 【更多额外信息】
前端获取设备的方法有问题吧,标准被WebRTC页面都是没问题的
Describe the bug 【Bug描述】
我在main函数中和添加如下代码
config.addCommandLineSwitch("enable-system-flash"); // flash config.addCommandLineSwitch("enable-speech-input"); //语音输入 config.addCommandLineSwitch("enable-media-stream"); config.addCommandLineSwitch("disable-gpu"); config.addCommandLineSwitch("ignore-certificate-errors"); config.addCommandLineSwitch("enable-usermedia-screen-capturing"); config.addCommandLineSwitch("enable-experimental-web-platform-features");
程序不能正常加载摄像头的视频流“https://vvclass.shinevv.com/?s=eyJyb29tX2lkIjoiMTA0NDk1IiwgInBhc3N3b3JkIjoiMjIyMjIyMjIiLCAibmlja05hbWUiOiLmiJHmmK%2FlsI%2Fnmb0iIH0%3D”另外我在CefViewBrowserApp::OnBeforeCommandLineProcessing函数添加如下代码也不生效:
command_line->AppendSwitch("enable-system-flash"); // flash command_line->AppendSwitch("enable-speech-input"); //语音输入 command_line->AppendSwitch("enable-media-stream"); command_line->AppendSwitch("disable-gpu"); command_line->AppendSwitch("ignore-certificate-errors"); command_line->AppendSwitch("enable-usermedia-screen-capturing"); command_line->AppendSwitch("enable-experimental-web-platform-features");
To Reproduce 【复现步骤】
void SimpleApp::OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line) { command_line->AppendSwitch("enable-system-flash"); // flash command_line->AppendSwitch("enable-speech-input"); //语音输入 command_line->AppendSwitch("enable-media-stream"); command_line->AppendSwitch("disable-gpu"); command_line->AppendSwitch("ignore-certificate-errors"); command_line->AppendSwitch("enable-usermedia-screen-capturing"); command_line->AppendSwitch("enable-experimental-web-platform-features"); }
Expected behavior 【正确的预期行为】...
Screenshots 【截图】
...
Environment 【BUG产生的环境】
Additional context 【更多额外信息】
...