Updated cefsharp and removed flash.
But there is now a bug where the browser crashed when trying to download anything.
This commit is contained in:
Diamond Creeper 2023-05-18 17:03:55 +12:00
parent d685e803b3
commit 81286909c6
776 changed files with 255315 additions and 42 deletions

View file

@ -22,16 +22,9 @@ namespace XeroBrowser
Application.SetCompatibleTextRenderingDefault(false);
Container = new AppContainer();
CefSettings settings = new CefSettings();
if (settings.CefCommandLineArgs.ContainsKey("enable-system-flash"))
settings.CefCommandLineArgs.Remove("enable-system-flash");
settings.CefCommandLineArgs.Add("enable-system-flash", "1");
settings.CefCommandLineArgs.Add("ppapi-flash-path", Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "pepflashplayer64_32_0_0_465.dll"));
settings.CefCommandLineArgs.Add("ppapi-flash-version", "32.0.0.465");
settings.CefCommandLineArgs["plugin-policy"] = "allow";
settings.UserAgent = "cpprestsdk/2.9.0 Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 XeroBrowser/1.0.0";
settings.CefCommandLineArgs.Add("enable-media-stream", "1");
Cef.EnableHighDPISupport();
settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\CEF";
Cef.Initialize(settings);