A system-wide installation of Pepper Flash that will be automatically discovered and loaded by CEF on Windows and OS X can be downloaded from https://get2.adobe.com/flashplayer/otherversions/ (choose "FP for Opera and Chromium -- PPAPI") in Step 2). To enable use the system-wide installation pass the --enable-system-flashcommand-line argument. — Marshall Greenblattprogram guiclient;
...
procedure CustomCommandLine (const processType: ustring; const commandLine: ICefCommandLine);
begin
commandLine.AppendSwitch('--enable-system-flash'); // since it doesn't need any value, that's enough, otherwise use AppendSwitchWithValue(switch, value);
end;
begin
CefCache := 'cache';
...
CefOnBeforeCommandLineProcessing := CustomCommandLine;
...
CefSingleProcess := False;
if not CefLoadLibDefault then Exit;
...
Application.Initialize;
...
end.
More about CefCommandLine at http://magpcss.org/ceforum/apidocs3/projects/(default)/CefCommandLine.html
procedure OnBeforeCommandLineProcessing(const processType: ustring;
const commandLine: ICefCommandLine);
begin
commandLine.AppendSwitch('always-authorize-plugins');
commandLine.AppendSwitch('enable-npapi');
commandLine.AppendSwitchwithvalue('load-plugin', 'NPSWF32.dll');
end; commandLine.AppendSwitch('--enable-gpu-plugin'); commandLine.AppendSwitch('--enable-accelerated-plugins');
...
commandLine.AppendSwitch('--enable-system-flash');