当前位置: 首页>>技术教程>>正文


我可以在 Firefox 中使用 Chrome 的 Pepper Flash 吗?

, ,

问题描述

由于 Adob​​e 在 Linux 上不再支持 Flash(参见下面的 “NOTICE”),有没有办法在 Firefox 中使用 Chrome 的 Pepper Flash 插件?


注意! Linux 不再支持 Flash,除了 Chrome 的一部分(除了极度过时的 Firefox 11.2 版本,即使它获得了安全更新,它仍然很古老,而且更新不那么频繁)。这在 Roadmap for Flash Runtimes from Adobe 中有详细说明。相关部分是平台支持,个人计算机子部分,Linux 部分,在此处引用(2015 年 1 月 14 日是这个被删除的时间,并且其中最重要的行由于重要原因被加粗,因为人们不想阅读整件事在这里):

\\n

Linux

\\n

Adobe has been working closely with Google to develop a single, modern API for hosting plug-ins within the browser. The PPAPI, code-named “Pepper”, aims to provide a layer between the plug-in and browser that abstracts away differences between browser and operating system implementations. You can find more information on the Pepper API at http://code.google.com/p/ppapi/.

\\n

Because of this work, Adobe has been able to partner with Google in providing a “Pepper” implementation of Flash Player for all x86/64 platforms supported by the Google Chrome browser. Google now distributes this new Pepper-based Flash Player as part of Chrome on all platforms, including Linux.

\\n

For Flash Player releases after 11.2, the Flash Player browser plug-in for Linux will only be available via the “Pepper” API as part of the Google Chrome browser distribution and will no longer be available as a direct download from Adobe. Adobe will continue to provide security updates to non-Pepper distributions of Flash Player 11.2 on Linux for five years from its release.

\\n

Flash Player will continue to support browsers using non-“Pepper” plug-in APIs on platforms other than Linux.

\\n

Adobe will not be providing a Pepper-based debug player implementation of the Flash Player browser plug-in on Linux.

\\n

As of Adobe AIR 3, Adobe has discontinued support for Adobe AIR for Linux operating systems.

\\n

最佳回答

\\n

This answer may be outdated due to recent changes to Adobe and Flash. This answer is left here as is for historical purposes.

\\n


\\n

Firefox is dropping support for NPAPI soon, which may make this answer out dated and invalid. It may only be possible to get Flash in Chrome, and only Chrome, at some point, such that there is no Firefox solution.

\\n

由于 Adob​​e 在 Linux 上不再支持 Flash,因此 Chrome 是 Fl​​ash 随附的剩余选项之一。这是 Chrome 的一种特殊情况,如 Linux 个人计算机下的子标题中的 Flash Roadmap from Adobe 中所述。

您可以在 Firefox 上使用 Pepper Flash(称为 “Fresh Player”)。 Webupd8 甚至评论了它 here 以及如何让它工作(链接的文章发布于 2014 年 5 月 29 日,可能已经过时了)。该插件可能可用,因为它似乎经常在 Ubuntu IRC 聊天中被建议作为解决方案。


以下内容摘自 Webupd8 帖子:

注意:用于此的包装器处于 ALPHA 阶段,可能非常不稳定。

不过,总结一下他们详述的步骤:

  1. 使用以下命令在 Ubuntu(通过 PPA)中安装 Fresh Player 插件:

    \n

    sudo add-apt-repository ppa:nilarimogard/webupd8\nsudo apt-get update\nsudo apt-get install freshplayerplugin\n
  2. 使用此功能的最简单方法意味着不幸的是,您需要安装 Google Chrome 才能使其正常工作。这是因为Fresh Player Plugin 只是 libpepflashplayer.so 的一个包装器,所以它需要这个与 Google Chrome 捆绑在一起的文件。获取此文件的最简单方法是简单地安装 Google Chrome 稳定版 – download it from here ,然后安装它。

    \n

    2a.或者:

    \n

    \n还有其他获取 libpepflashplayer.so 的方法,但我不会在此处发布\n所有这些的安装说明。\n相反,我将在下面列出它们:\n\n如果您使用的是 Google Chrome Unstable,请创建从 /opt/google/chrome-unstable/PepperFlash/opt/google/chrome/ 的符号链接或\n 更改添加 freshwrapper.conf 文件并添加\n /opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so 路径\n 那里 – 请参阅步骤 3\n您可以使用其他 2 种方式安装 Pepper Flash:通过官方 Ubuntu 14.04 存储库中提供的 installer并且\n 通过 Pepper Flash PPA,它也可用于较旧的 Ubuntu\n 版本 – 一旦安装,您需要为 Pepper Flash 创建一个符号链接\n 到\n /opt/google/chrome/PepperFlash/libpepflashplayer.so 或参见步骤 3\n 了解如何更改它的路径。\n\n

  3. 删除 APT 安装的 flash 插件: 从软件中心删除/清除这些软件包 flashplugin-installer adobe-flashplugin adobe-flash-properties-gtk adobe-flash-properties-kde 或仅在终端中运行:

    \n

    sudo aptitude --purge-unused purge flashplugin-installer adobe-flashplugin adobe-flash-properties-gtk adobe-flash-properties-kde\n

    \n

    Pepper Flash 包并没有替换原来的库文件,这就是为什么到这一步,你可以在 Add-ons 页面中看到 Flash 插件的两个版本,并且无法确定 Firefox 会使用最新版本。而且你不能在不禁用另一个的情况下禁用一个(如果你禁用一个并重新启动,两者都将被禁用)。

  4. 可选(仅在您想要调整各种设置时使用它):配置 Fresh Player 插件\n\n Here 您将找到一个示例 Fresh *Player 插件配置 -\n 使用它,保存此文件,将其重命名为 freshwrapper.conf 和在 ~/.config/freshwrapper-data/ 下复制\n \n使用此配置文件将路径更改为\n libpepflashplayer.so 或调整声音缓冲区,如果您有\n 快门声音。暂时不要使用它来启用硬件加速\n 因为它不能正常工作 for now !\n此文件中可用的配置选项非常\n 不言自明 – 您可以为音频配置\n 的下限和上限缓冲区大小,更改用于获取\n 全屏窗口几何图形的 Xinerama 屏幕(默认值:0),将路径更改为\n libpepflashplayer.so 以及命令行参数(例如\n 启用硬件视频解码)。\n

次佳回答

基于 this website ,您应该尝试以下操作:

sudo apt-get install browser-plugin-freshplayer-pepperflash

为我工作。

第三种回答

问题以及接受的答案中提供的许多信息不再有效。

Ubuntu 用户获取最新版本的 NPAPI 和 PPAPI 插件的最简单方法是 enable Canonical Partner 并安装 adobe-flashplugin 包。

默认情况下,Firefox 使用 NPAPI 插件。但是,NPAPI 插件不会具有 PPAPI 插件所具有的所有功能。通过安装 browser-plugin-freshplayer-pepperflash 包(并重新启动 Firefox),Firefox 实际上将使用 PPAPI 插件。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/12937.html,未经允许,请勿转载。