使用 Pepper Flash 插件

    在 macOS 和 Linux 上,您可以通过在 Chrome 浏览器的 chrome://flash 页面上找到 Pepper Flash 插件的信息。 插件的路径和版本会对 Election 对其的支持有帮助。 你也可以把插件 复制到另一个路径以保留一份副本。

    你可以直接在命令行中用 --ppapi-flash-path--ppapi-flash-version 或者 在 app 的准备事件前调用 app.commandLine.appendSwitch 这个方法。 同时, 打开 的plugins选项。

    您也可以尝试加载系统安装的 Pepper Flash 插件,而不是装运 插件,其路径可以通过调用 app.getPath('pepperFlashSystemPlugin') 获取。

    <webview> 标签里添加 属性。

    1. <webview src="https://www.adobe.com/software/flash/about/" plugins></webview>

    The architecture of Pepper Flash plugin has to match Electron’s one. On Windows, a common error is to use 32bit version of Flash plugin against 64bit version of Electron.

    On Windows the path passed to --ppapi-flash-path has to use \ as path delimiter, using POSIX-style paths will not work.