首页 > 其他分享 >CefSharp 常用设置

CefSharp 常用设置

时间:2022-10-25 17:35:42浏览次数:58  
标签:CefSharp 设置 settings no 常用 Add CefCommandLineArgs CefSettings

 CefSettings settings = new CefSettings();
            CefSharpSettings.WcfEnabled = true;
            settings.CefCommandLineArgs.Add("autoplay-policy", "no-user-gesture-required");  //视频自动播放
            settings.CefCommandLineArgs.Add("disable-usb-keyboard-detect", "1");  //禁U盘
            settings.CefCommandLineArgs.Add("enable-media-stream", "1");  //可以调视频
            settings.CefCommandLineArgs.Add("no-proxy-server", "1"); //不开代理
            settings.CefCommandLineArgs.Add("enable-speech-input", "1");  //语音输入
            settings.CefCommandLineArgs.Add("touch-events", "1");    //开启触屏事件
            Cef.Initialize(settings);

 

标签:CefSharp,设置,settings,no,常用,Add,CefCommandLineArgs,CefSettings
From: https://www.cnblogs.com/handsomeziff/p/16825613.html

相关文章