CefSharp 常用设置

 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);

 

posted @ 2022-10-25 17:21  ziff123  阅读(497)  评论(0编辑  收藏  举报