CEF 开启摄像头功能、FLASH功能

版权声明:www.gudianxiaoshuo.com (古典小说网) 今日头条号: 古典古韵古典小说、讨厌编程 https://blog.csdn.net/shuilan0066/article/details/83057031

		command_line->AppendSwitchWithValue("enable-media-stream", "1");  //开启摄像头
		command_line->AppendSwitchWithValue("enable-system-flash", "1");  //flash
		command_line->AppendSwitchWithValue("enable-speech-input", "1");  //语音输入

其它一些命令行设置,也可以如此进行

Example code in settings.json:

command_line_switches: {
    "lang": "fr",
    "enable-media-stream": "",
    "enable-system-flash": ""
},
Example switches:

{"lang": "fr"} - The language file that we want to try to open. Of the form language[-country] where language is the 2 letter code from ISO-639. See locales/ directory for a full list of supported languages.
{"enable-media-stream": ""} - Enables media streaming (WebRTC audio/video).
{"enable-system-flash": ""} - Enables Flash. Additionally you need to install PPAPI system-wide plugin.
{"enable-speech-input": ""} - Enable speech input (x-webkit-speech).
{"disable-web-security": ""} - Don't enforce the same-origin policy.
{"proxy-server": "socks5://127.0.0.1:8888"} - To set custom proxy. See also Proxy Resolution in upstream CEF.
{"no-proxy-server": ""} - By default Chromium uses the IE proxy settings (set in Internet Explorer options). To disable use of that proxy set the "no-proxy-server" Chromium switch. See also Proxy Resolution in upstream CEF.

参考资料:

https://github.com/cztomczak/phpdesktop/wiki/Chrome-settings

猜你喜欢

转载自blog.csdn.net/shuilan0066/article/details/83057031
CEF
今日推荐