我的dcefbrowser 版本是:3.2623
1:首选去下载一个flash库文件:http://download.csdn.net/download/caonumber/10155689
2:工程文件中 代码:
procedure OnBeforeCommandLineProcessing(const processType: ustring;
const commandLine: ICefCommandLine);
begin
commandLine.AppendSwitch('--disable-web-security');
commandLine.AppendSwitch('no-proxy-server');
commandLine.AppendSwitch('--enable-system-flash'); //加载flash插件
end;
begin
DcefBApp.OnBeforeCommandLineProcessing := OnBeforeCommandLineProcessing;
DcefBApp.CefCache := 'cache';
DcefBApp.CefAddWebPluginPath(ExtractFilePath(Paramstr(0)) +
'pepflashplayer.dll');
DcefBApp.CefRefreshWebPlugins;
Application.Initialize;
Application.Run;
end.