Can I use Chrome's Pepper Flash with Firefox?
This answer may be outdated due to recent changes to Adobe and Flash. This answer is left here as is for historical purposes.
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.
Since Adobe no longer supports Flash on Linux, Chrome is one of the remaining options that ships with Flash included. This is a Chrome special case, as detailed in the Flash Roadmap from Adobe in the Linux subheading under Personal Computers.
You can use Pepper Flash (called "Fresh Player") on Firefox. Webupd8 even commented on it here and how to get it working (the linked article was posted on May 29, 2014 and may be out of date). The plugin may be usable as it seems to be suggested regularly in the Ubuntu IRC chats as a solution.
The below is extracted from the Webupd8 post:
NOTE: The wrapper used for this is in ALPHA stage and is likely to be EXTRAORIDNARILY unstable.
To summarize the steps they detail, though:
Install Fresh Player Plugin in Ubuntu (via PPA), by using the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install freshplayerplugin
The easiest method to use this means that you will unfortunately need to install Google Chrome for this to work. This is becauseFresh Player Plugin is just a wrapper for
libpepflashplayer.so
, so it needs this file which is bundled with Google Chrome. The easiest way to get this file is to simply install Google Chrome Stable - download it from here, then install it.2a. Alternatively:
There are other ways of getting libpepflashplayer.so but I won't post installation instructions for all of them here.
Instead, I'll just list them below:
If you're using Google Chrome Unstable, create a symbolic link from
/opt/google/chrome-unstable/PepperFlash
to/opt/google/chrome/
or change add afreshwrapper.conf
file and add the/opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so
path there - see step 3You can install Pepper Flash using 2 other ways: via the installer available in the official Ubuntu 14.04 repositories and via the Pepper Flash PPA which is also available for older Ubuntu versions - once installed, then you'll need to create a symbolic link for Pepper Flash to
/opt/google/chrome/PepperFlash/libpepflashplayer.so
or see step 3 for how to change the path to it.
Remove the flash plugin installed by APT: Remove/Purge these packages from the Software Center
flashplugin-installer
adobe-flashplugin
adobe-flash-properties-gtk
adobe-flash-properties-kde
or just run in a terminal:sudo aptitude --purge-unused purge flashplugin-installer adobe-flashplugin adobe-flash-properties-gtk adobe-flash-properties-kde
The Pepper Flash package doesn't replace the original library file, this is why up to this step, you can see both versions of the Flash plugin in the Add-ons page, and there's no way to be sure that Firefox will use the latest version. And you just can't disable one without disabling the other (If you disable one and restart, both will be disabled).
Optional (only use it if you want to tweak various settings): configure Fresh Player Plugin
Here you'll find an example Fresh *Player Plugin configuration - to use it, save this file, rename it to
freshwrapper.conf
and copy it under~/.config/freshwrapper-data/
Use this configuration file to change the path to
libpepflashplayer.so
or to tweak the sound buffer if you have shuttering sound. Don't use it to enable hardware acceleration yet as it doesn't work properly for now!The configuration options available in this file are pretty self-explanatory - you can configure the lower and higher bound for the audio buffer size, change the Xinerama screen used to acquire fullscreen window geometry (default: 0), change the path to
libpepflashplayer.so
along with command line arguments (like enabling hardware video decoding).
Based on this website, you should try the following:
sudo apt-get install browser-plugin-freshplayer-pepperflash
Worked for me.
Much of the information provided in the question as well as in the accepted answer is not valid any longer.
- Adobe is about to support the NPAPI plugin for Linux again, and makes currently a beta version of it available.
- Firefox will not drop the support for the NPAPI Flash plugin. (They will, however, drop support for other kinds of NPAPI plugins in March 2017.)
The easiest way for Ubuntu users to get the latest version of both the NPAPI and PPAPI plugin is to enable Canonical Partner and install the adobe-flashplugin
package.
By default Firefox uses the NPAPI plugin. However, the NPAPI plugin won't have all the features which the PPAPI plugin has. By installing the browser-plugin-freshplayer-pepperflash
package (and restarting Firefox) Firefox will actually use the PPAPI plugin instead.