mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
CefSharp.OffScreen - Disable audio by default
It doesn't make much sense in an offscreen scenario
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user