Winforms/WPF Example - Enable WebRTC
Example of setting a command line argument
This commit is contained in:
parent
c0d667fc7a
commit
726c328f6a
@ -22,6 +22,10 @@ namespace CefSharp.MinimalExample.WinForms
|
|||||||
CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Cache")
|
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.
|
//Perform dependency check to make sure all relevant resources are in our output directory.
|
||||||
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
|
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
|
||||||
|
|
||||||
|
@ -14,6 +14,10 @@ namespace CefSharp.MinimalExample.Wpf
|
|||||||
CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Cache")
|
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.
|
//Perform dependency check to make sure all relevant resources are in our output directory.
|
||||||
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
|
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user