一、
1、Xilium.CefGlue. CefApp (CefApp.cs文件)类on_before_command_line_processing方法内设置flash路径、版本号等。
m_commandLine.AppendSwitch("ppapi-flash-path", @"*\PepperFlash\pepflashplayer.dll");
m_commandLine.AppendSwitch("ppapi-flash-version", "2*.*.*.306");
2、设置Cef缓存
cefSettings = new CefSettings
{
CachePath = @"Temp\Cache\",
NoSandbox = false,
****
};
3、设置Cef Flash 信任目录
//flash信任路径配置文件夹
string strFlashSettingPath = string.Format(@"{0}Temp\Cache\Pepper Data\Shockwave Flash\WritableRoot\#Security\FlashPlayerTrust", AppDomain.CurrentDomain.BaseDirectory);
if (!Directory.Exists(strFlashSettingPath))
{
Directory.CreateDirectory(strFlashSettingPath);
}
//flash配置文件路径
string strFlashSettingFilePath = Path.Comb