cesharp 完美支持flash
直接上代码:
cefSettings.CefCommandLineArgs.Add("enable-npapi", "1");
//cefSettings.CefCommandLineArgs.Add("enable-system-flash", "1");
//Flash
var flashFile = System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "PepperFlash", "pepflashplayer.dll");
if (System.IO.File.Exists(flashFile))
{
cefSettings.CefCommandLineArgs.Add("ppapi-out-of-process","1");
//Load the pepper flash player that comes with Google Chrome - may be possible to load these values from the registry and query the dll for it's version info (Step 2 not strictly required it seems)
cefSettings.CefCommandLineArgs.Add("ppapi-flash-path", flashFile); //Load a specific pepper flash version (Step 1 of 2)
cefSettings.CefCommandLineArgs.Add("ppapi-flash-version", "99.0.0.999"); //Load a specific pepper flash version (Step 2 of 2)
}
浙公网安备 33010602011771号