Page 1 of 1
How To Use NPSWF32.dll and enable npapi in Current 3.3 CEF
Posted: Tue Jul 04, 2017 8:37 am
by crystalxp
Use
GlobalCEFApp.AddCustomCommandLine('--enable-npapi','') ;
Can't Effect , What's Wrong With ?
and How to set plugins Dir
Thanks !
Re: How To Use NPSWF32.dll and enable npapi in Current 3.3 CEF
Posted: Tue Jul 04, 2017 11:25 am
by salvadordf
Hi,
CEF4Delphi has the Flash plugin enabled by default but you have to install the
PPAPI plugin as described here :
https://www.briskbard.com/index.php?lang=en&faqitem=208
NPAPI plugins are no longer supported in CEF3.
Re: How To Use NPSWF32.dll and enable npapi in Current 3.3 CEF
Posted: Wed Jul 05, 2017 7:02 am
by crystalxp
Thanks, Very useful!
Another question ,How to embbeding the ppapi flash(pepflashplayer.dll) in own dir rather than load it from global dir like C:\Windows\SysWOW64\Macromed\Flash
Re: How To Use NPSWF32.dll and enable npapi in Current 3.3 CEF
Posted: Wed Jul 05, 2017 8:25 am
by salvadordf
Hi,
I've never tried it but I guess you would have to add
GlobalCEFApp.AddCustomCommandLine('--ppapi-flash-path', YOUR_FULL_FLASH_PLUGIN_PATH);
GlobalCEFApp.AddCustomCommandLine('--ppapi-flash-version', YOUR_FLASH_PLUGIN_VERSION);
before the GlobalCEFApp.StartMainProcess call.
There are several PPAPI command line switches here :
https://peter.sh/experiments/chromium-c ... -switches/
Maybe you would have to set GlobalCEFApp.FlashEnabled to False but as I told you, I've never tried this.
Re: How To Use NPSWF32.dll and enable npapi in Current 3.3 CEF
Posted: Wed Jul 05, 2017 8:43 am
by crystalxp
thanks , I will try it.

Re: How To Use NPSWF32.dll and enable npapi in Current 3.3 CEF
Posted: Wed Jul 05, 2017 9:04 am
by crystalxp
thanks again..
It's works fine:
GlobalCEFApp.FlashEnabled := False;
GlobalCEFApp.AddCustomCommandLine('--ppapi-flash-path',
ExtractFilePath(Application.ExeName) +
'\plugins\pepflashplayer32.dll');
GlobalCEFApp.AddCustomCommandLine('--ppapi-flash-version', '26.0.0.133');
so the user can view flash without to install ppapi flash