Python在CentOS服务器上使用Chrome打开带Flash的网页时提示“restart chrome to enable adobe flash player”如何解决?

背景: centos 云服务器 chrome 最新版 66 版本 已设置默认允许 flash 加载

但是还是会出现这个问题,大佬们求解


Python在CentOS服务器上使用Chrome打开带Flash的网页时提示“restart chrome to enable adobe flash player”如何解决?
2 回复

这个问题是因为Chrome默认禁用了Flash,需要手动启用。

解决方案:

  1. 在CentOS服务器上安装Chrome时,确保已安装pepper-flash插件(通常包含在官方Chrome包中)。
  2. 通过Chrome的flags配置强制启用Flash。

操作步骤:

  1. 检查Flash插件是否已安装:

    ls /usr/lib64/chromium-browser/PepperFlash/
    

    或查找libpepflashplayer.so文件。

  2. 启动Chrome时添加参数启用Flash:

    google-chrome --enable-features=PepperFlash --ppapi-flash-path=/path/to/libpepflashplayer.so --ppapi-flash-version=version_number
    

    如果路径未知,可以用find查找:

    find / -name "libpepflashplayer.so" 2>/dev/null
    
  3. 如果仍提示重启,尝试清除Chrome配置缓存:

    rm -rf ~/.config/google-chrome/PepperFlash
    

注意: Chrome已停止支持Flash,如果网页必须使用Flash,考虑改用其他浏览器(如Firefox+Flash插件)或升级网页技术。

总结: 通过命令行参数强制启用Flash插件即可。


自己顶一下😂

回到顶部