加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

【Electron】Electron开发入门(九):添加Flash插件

发布时间:2020-12-15 19:50:27 所属栏目:百科 来源:网络整理
导读:一、Electron官方开启Flash插件说明:https://electronjs.org/docs/tutorial/using-pepper-flash-plugin 看了这篇文章,并且各种操作之后,你会发现一个问题,没有地方下载 pepflashplayer.dll,PepperFlashPlayer.plugin,libpepflashplayer.so这些插件,然

一、Electron官方开启Flash插件说明:https://electronjs.org/docs/tutorial/using-pepper-flash-plugin

看了这篇文章,并且各种操作之后,你会发现一个问题,没有地方下载
pepflashplayer.dll,PepperFlashPlayer.plugin,libpepflashplayer.so这些插件,然后一些群文件,或者网上找的下载包里的pepflashplayer.dll放进去测试后,要是你发现还是没有任何作用,如图:

这里写图片描述


why?pepflashplayer.dll 版本错了,pepflashplayer.dll的版本要和Electron的版本一一对应;

解决方法:
Window下获取pepflashplayer.dll:
1.Flash Player在各个系统,各个游览器下的版本信息
http://get.adobe.com/cn/flashplayer/about/

2.Adobe Flash Player 下载安装路径
https://get2.adobe.com/cn/flashplayer/

3.Flash Player 插件安装好后,Windows系统可以在以下路径找到相应的dll文件
C:WindowsSystem32MacromedFlashpepflashplayer64_23_0_0_207.dl
C:WindowsSysWOW64MacromedFlashpepflashplayer32_23_0_0_207.dll
上面依次对应 64位 及 32位的插件,必须与Electron 的对应
其他系统可以通过chrome打开 chrome://plugins/ 查看插件位置
建议将插件复制到项目的目录或子目录下

然后再测试,就会发现OK了。

2.Electron一些关于api,插件类应用案例:
https://github.com/hokein/electron-sample-apps

3.参考文章
http://blog.csdn.net/sapperlab/article/details/53577046

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读