A sample shows Pepper Flash Plugin usage in Electron. More details can be found at https://github.com/electron/electron/blob/master/docs/tutorial/using-pepper-flash-plugin.md.
-
Copy the pepper flash plugin under the current app directory.
-
Make ppapi-flash-version in
main.js
align with the copied plugin's. -
Run the sample
electron path/to/electron-sample-apps/pepper-flash-plugin
. If it succeeds, you can viewYou have version X.X.X.X installed
in the sample page.
Note: Please make sure the version of Pepper Flash Plugin is the same to the one being used in the Electron's Chromium version.
-
Copy from Chrome Browser: you can find the plugin (
Adobe Flash Player
) location by navigatingchrome://plugins
in Chrome Browser. -
Manually install Adobe Flash Player from https://get.adobe.com/flashplayer/otherversions/. Then you can find plugin in the installed directory, ie. On Windows, the directory is under
C:\Windows\SysWOW64\Macromed\Flash
(32-bits) andC:\Windows\System32\Macromed\Flash
(64-bits).
This means you mixing up the architectures. You need to make the architecture of flash plugin consitent with Electron you run, e.g., load 32-bit flash plugin in 32-bit Electron.