在 Chrome 中安装调试 Flash 播放器?

在 Chrome 中安装调试 Flash 播放器?

我正在尝试调整来自的说明这里,这里, 和这里在我的 Ubuntu 13.04 安装上安装 Flash 播放器的调试版本,以便 Chrome 30.0.1599.66 可以使用它。

有趣的是,我似乎已经安装了官方的 Adob​​e flash 插件并可以通过 Chrome 使用,因此问题从“安装 flash”变为“用调试器版本替换常规 flash”。

在此输入图像描述

所以我需要libflashplayer.so用下载的替换来自 Adob​​e.听起来很简单。

我选择了这个文件(Linux Flash Player 11.2插件内容调试器),解压并安装Flash Player本地设置配置文件遵医嘱

然后我替换/usr/lib/flashplugin/installer/libflashplayer.so为调试器安装中包含的版本,并重新启动 Chrome。令我惊讶的是,第二个 Adob​​e Flash Player 列表chrome://plugins就消失了!

在此输入图像描述

就好像 Chrome 由于某种原因不喜欢调试器插件。我尝试了各种方法来让调试器插件出现,但无济于事:

  • chmod +rx libflashplayer.so
  • nspluginwrapper -i libflashplayer.so(结果出错no appropriate viewer found for libflashplayer.so
  • mkdir /opt/google/chrome/plugins; mv libflashplayer.so /opt/google/chrome/plugins

如何让 Chrome 识别 Flash 调试器插件?

答案1

我在尝试让它在 Firefox 上工作时终于弄清楚了!这是基于我找到的方向这里

sudo apt-get install ia32-libs nspluginwrapper
sudo mkdir /usr/lib/flash-plugin/
wget http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug.i386.tar.gz
tar xzvf flashplayer_11_plugin_debug.i386.tar.gz
sudo cp libflashplayer.so /usr/lib/flash-plugin/
sudo chmod 775 /usr/lib/flash-plugin/libflashplayer.so
cd /usr/lib/mozilla/plugins
rm -rf npwrapper.libflashplayer.so # Not sure if this part is necessary or not
sudo ln -s /usr/lib/flash-plugin/libflashplayer.so .
sudo chmod 777 libflashplayer.so
sudo nspluginwrapper -i /usr/lib/flash-plugin/libflashplayer.so
#                       ^ Use the full path here as a relative path won't work!

现在重新启动 Chrome 和 Firefox。两者都应该使用 flash 插件的调试版本!

答案2

Chromium 不允许您这样做,因为它是 32 位库:

$ file /usr/lib/flashplugin-installer/libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer.so.bk
/usr/lib/flashplugin-installer/libflashplayer.so:    ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
/usr/lib/flashplugin-installer/libflashplayer.so.bk: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

(显然,这.bk是我的备份)

我会使用32位系统来调试Flash。

(我现在没有32位系统,稍后更新)

相关内容