关于chrome flash的问题原因分析和解决办法
Tofloor
poster avatar
BingoLove
deepin
2018-07-06 07:34
Author
本帖最后由 BingoLove 于 2018-7-8 07:16 编辑

根据https://bbs.deepin.org/post/166026 的提醒,最新方法是删掉电脑上自己安装的所以flash
启动浏览器到 chrome://components/ ,检查更新,让浏览器自动安装最新flash。重启浏览器就可以了







chrome默认读取的是 ~/.config/google-chrome/PepperFlash/ 下面的flash,但是这个位置的flash更新之后只有最新版,所以才会有重新安装flash之后可以用,重启系统之后又无效。其实系统安装的flash在 /usr/lib/PepperFlash/ 。这个不会被删除。所以要解决flash无法使用的问题就是指定flash位置到 /usr/lib/PepperFlash/。
chrome的flash是根据  ~/.config/google-chrome/PepperFlash/latest-component-updated-flash 里面的设置载入的。所以修改 PepperFlash/latest-component-updated-flash 里面的flash路径就可以。

  1. {"Hash":"w6E63CF6l8v3jCVLqSlOTuf9l90dpGUQqCOeab1ck/U=","HashAlgorithm":0,"PluginPath":"/home/deepin/.config/google-chrome/PepperFlash/29.0.0.171/libpepflashplayer.so","PluginVersion":"29.0.0.171","Version":16}
Copy the Code
这个文件里面指定了flash版本和位置。只要把里面的地址修改为 /usr/lib/PepperFlash/29.0.0.171/libpepflashplayer.so 就可以了。
  1. {"Hash":"w6E63CF6l8v3jCVLqSlOTuf9l90dpGUQqCOeab1ck/U=","HashAlgorithm":0,"PluginPath":"/usr/lib/PepperFlash/29.0.0.171/libpepflashplayer.so","PluginVersion":"29.0.0.171","Version":16}
Copy the Code

最后重启chrome 可以看到,然后flash一切正常。

本来我想换到30的,不过它这个Hash不知道怎么算出来的,所以没法换。



最后,说了那么多,其实都是废话 ,只要下面一句命令然后重启浏览器就可以

  1. sudo sed -i "s#/home/deepin/.config/google-chrome#/usr/lib#" /usr/lib/PepperFlash/latest-component-updated-flash && cp /usr/lib/PepperFlash/latest-component-updated-flash ~/.config/google-chrome/PepperFlash/latest-component-updated-flash
Copy the Code

en..... 我安装的是libflashplugin-pepper如果你没有的话先装上


Reply Favorite View the author
All Replies
avatar
蒙笛
deepin
2018-07-07 00:18
#1
直接用了楼主最后的代码,成功解决问题。
Reply View the author
avatar
keyboy
deepin
2018-07-07 03:10
#2
最后那一条命令无效,没有任何反应
Reply View the author
avatar
BingoLove
deepin
2018-07-07 03:33
#3
https://bbs.deepin.org/post/166032
最后那一条命令无效,没有任何反应

这命令本来就是成功了也没有返回值的,你只要确认成功就行了。然后重启浏览器看看效果
Reply View the author
avatar
湘巴佬儿
deepin
2018-07-07 04:13
#4


嘿!我的版本已经是30.xxxx啦。。。

咦!我的系统版本?
Reply View the author
avatar
BingoLove
deepin
2018-07-07 04:28
#5
https://bbs.deepin.org/post/166032
嘿!我的版本已经是30.xxxx啦。。。

咦!我的系统版本?

是不是测试源?
Reply View the author
avatar
湘巴佬儿
deepin
2018-07-07 04:41
#6

都是系统默认设置呀!
Reply View the author
avatar
广雅居士
deepin
2018-07-07 05:43
#7
不错,能用了,谢谢。
Reply View the author
avatar
linusboyle
deepin
2018-07-07 07:27
#8
本帖最后由 linusboyle 于 2018-7-6 23:28 编辑

已解决。
Reply View the author
avatar
sishero
deepin
2018-07-07 09:26
#9
牛啊,问题立马解决了,deepin论坛里大神真的多,推荐一下,一点要让更多人看见!!
Reply View the author
avatar
mytree
deepin
2018-07-07 21:34
#10
C:\ff\1.png
Reply View the author
avatar
mytree
deepin
2018-07-07 21:35
#11
我的不行,还是29版本,每次都要点一下安装新版FLASH,
Reply View the author
avatar
z778280151
deepin
2018-07-07 21:40
#12
flash迟早被自己玩死
Reply View the author
avatar
BingoLove
deepin
2018-07-07 21:49
#13
https://bbs.deepin.org/post/166032
我的不行,还是29版本,每次都要点一下安装新版FLASH,

chrome的设置本来就是每次运行flash都要询问,这个方法只是解决flash升级问题,表现为安装了29版,仍然使用的是24版flash。

你要是想要直接运行,要对指定网站添加允许的白名单才行chrome://settings/content/flash
Reply View the author
avatar
mytree
deepin
2018-07-10 04:53
#14
https://bbs.deepin.org/post/166032
chrome的设置本来就是每次运行flash都要询问,这个方法只是解决flash升级问题,表现为安装了29版,仍然使 ...

谢谢指导。收藏了。
Reply View the author
avatar
Playhi
deepin
2018-07-10 19:19
#15
弄到30了
  1. {"Hash":"pISq203FITkaxcW7gkD+W6Z0YqABxx0z2wvbod7UmkE=","HashAlgorithm":0,"PluginPath":"/home/playhi/.config/google-chrome/PepperFlash/30.0.0.113/libpepflashplayer.so","PluginVersion":"30.0.0.113","Version":16}
Copy the Code
Reply View the author
avatar
hulo
deepin
2018-11-06 18:20
#16
直接用最后的代码成功解决,谢谢
Reply View the author