Winforms/WPF Example - Enable WebRTC

Example of setting a command line argument
This commit is contained in:
amaitland 2018-07-13 10:48:52 +10:00
parent c0d667fc7a
commit 726c328f6a
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,10 @@ namespace CefSharp.MinimalExample.WinForms
CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Cache")
};
//Example of setting a command line argument
//Enables WebRTC
settings.CefCommandLineArgs.Add("enable-media-stream", "1");
//Perform dependency check to make sure all relevant resources are in our output directory.
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);

View File

@ -14,6 +14,10 @@ namespace CefSharp.MinimalExample.Wpf
CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Cache")
};
//Example of setting a command line argument
//Enables WebRTC
settings.CefCommandLineArgs.Add("enable-media-stream", "1");
//Perform dependency check to make sure all relevant resources are in our output directory.
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
}