CefSharp.OffScreen - Disable audio by default

It doesn't make much sense in an offscreen scenario
This commit is contained in:
amaitland
2018-08-08 18:56:50 +10:00
parent a9a3d52b33
commit 810f087dda
+5 -1
View File
@@ -11,7 +11,11 @@ namespace CefSharp.OffScreen
{
WindowlessRenderingEnabled = true;
if(Cef.CefVersion.StartsWith("r3.3497"))
//For OffScreen it doesn't make much sense to enable audio by default, so we disable it.
//this can be removed in user code if required
CefCommandLineArgs.Add("mute-audio", "1");
if (Cef.CefVersion.StartsWith("r3.3497"))
{
throw new System.Exception("Issue #2408 should have been resolved, remove the below code");
}