Difference between revisions of "Browser plugins"

From ArchWiki
Jump to: navigation, search
(use https for links to archlinux.org)
m (Adobe Reader: style)
 
(192 intermediate revisions by 70 users not shown)
Line 1: Line 1:
 +
[[Category:Web browser]]
 
[[de:Browser Plugins]]
 
[[de:Browser Plugins]]
[[es:Browser Plugins]]
+
[[es:Browser plugins]]
 
[[fr:Plugins navigateur]]
 
[[fr:Plugins navigateur]]
 +
[[ja:ブラウザプラグイン]]
 +
[[ru:Browser plugins]]
 
[[tr:Web tarayıcı eklentileri]]
 
[[tr:Web tarayıcı eklentileri]]
[[zh-CN:Browser Plugins]]
+
[[zh-cn:Browser plugins]]
[[Category:Web Browser]]
+
{{Related articles start}}
These plugins work in [[Firefox]], [[Opera]] and WebKit derivatives. <!-- Chrome? -->
+
{{Related|Opera}}
 +
{{Related|Firefox}}
 +
{{Related|Chromium}}
 +
{{Related articles end}}
  
== Flash Player ==
+
There are two types of browser plugins, based on the plugin API they
 +
use:
 +
*Netscape plugin API (NPAPI): these plugins work in [[Firefox]] and most other browsers ('''not''' in Chromium and Opera).
 +
*Pepper plugin API (PPAPI): these plugins work only in [[Chromium]] (and Chrome) and [[Opera]].
  
=== Gnash ===
+
Most plugins on this page are NPAPI-only, unless noted otherwise.
[http://www.gnu.org/software/gnash/ GNU Gnash] is a free (libre) alternative to Adobe Flash Player. It is available both as a standalone player for desktop computers and embedded devices, as well as a browser plugin, and supports the SWF format up to version 7 (with versions 8 and 9 under development) and about 80% of ActionScript 2.0.
+
  
GNU Gnash can be [[Pacman|installed]] with the package {{Pkg|gnash-gtk}}, available in the [[official repositories]].
+
== Flash Player ==
  
=== Lightspark ===
+
=== Adobe Flash Player ===
[http://lightspark.github.com/ Lightspark] is another attempt to provide a free alternative to Adobe Flash aimed at supporting newer Flash formats. Although it is still very much in development, it supports some [https://github.com/lightspark/lightspark/wiki/Site-Support popular sites].
+
  
Lightspark can be [[Pacman|installed]] with the package {{AUR|lightspark}} or {{AUR|lightspark-git}}, available in the [[AUR]].
+
==== Installation ====
  
=== Adobe Flash Player ===
+
The package you will need to install depends on the browser you use.
The Adobe Flash Player is also available in the official repositories, although it was [http://blogs.adobe.com/flashplayer/2012/02/adobe-and-google-partnering-for-flash-player-on-linux.html discontinued on Linux] (for both 32-bit and 64-bit). Adobe will be providing security updates
+
for another 5 years (i.e. 2017), but new versions of the plugin will only come integrated with Google Chrome (using its new PPAPI).
+
  
[[Pacman|Install]] {{Pkg|flashplugin}} from the [[official repositories]].
+
* The NPAPI version can be [[pacman|installed]] with the {{Pkg|flashplugin}} package. This plugin was [https://blogs.adobe.com/flashplayer/2012/02/adobe-and-google-partnering-for-flash-player-on-linux.html discontinued by Adobe] and is stuck at version 11.2; although, Adobe will provide security updates for 5 years after its release (i.e. until March 2017[https://blogs.adobe.com/flashplayer/2012/02/adobe-and-google-partnering-for-flash-player-on-linux.html][http://helpx.adobe.com/flash-player/release-note/release-notes-developer-flash-player.html]).
 +
 
 +
* The PPAPI version is shipped with Google Chrome. If you are using Chromium or any other browser using the PPAPI interface such as [[Opera]], see [[Chromium#Flash Player plugin]] for more information.
  
 
{{Note|
 
{{Note|
* Some versions of Epiphany have trouble recognizing the Flash plugin. See [[Epiphany#Flash]] for more details.
+
* Some Flash apps may require the {{AUR|ttf-ms-fonts}} package in order to properly render text.
* The Adobe Flash Player may also require {{AUR|ttf-ms-fonts}} from the [[AUR]] in order to properly render text.
+
* The {{AUR|freshplayerplugin}} package provides an ''experimental'' adapter to use {{AUR|chromium-pepper-flash}} with NPAPI based browsers like Firefox. It can be configured (e.g. for enabling HW-acceleration) by copying {{ic|/usr/share/freshplayerplugin/freshwrapper.conf.example}} to {{ic|~/.config/freshwrapper.conf}}.
 
}}
 
}}
{{Tip|Chromium can also use the Google Chrome Flash Player, see [[Chromium#Flash Player]].}}
+
 
 +
==== Upgrade ====
 +
 
 +
If you are using [[Firefox]], please make sure to follow [[Firefox#Firefox detects the wrong version of my plugin|this instruction first]].
  
 
==== Configuration ====
 
==== Configuration ====
<!-- Change this heading to Flash configuration once more than one plugin needs a similar section -->
 
To change the preferences (privacy settings, resource usage, etc.) of Flash Player, right click on any embedded Flash content and choose ''Settings'' from the menu, or go to the [http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html Macromedia website]. There, a Flash animation will give you access to your local settings.
 
  
You can also use the Flash settings file {{ic|/etc/adobe/mms.cfg}}. An example configuration:
+
To change the preferences (privacy settings, resource usage, etc.) of Flash Player, right click on any embedded Flash content (for instance [https://helpx.adobe.com/flash-player.html adobe's flash home]) and choose ''Settings'' from the menu.
{{hc|/etc/adobe/mms.cfg|<nowiki>
+
 
  # Adobe player settings
+
You can also use the Flash settings file {{ic|/etc/adobe/mms.cfg}}. Gentoo has an extensively commented [http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/files/mms.cfg example mms.cfg].
  AVHardwareDisable = 0
+
  FullScreenDisable = 0
+
  LocalFileReadDisable = 1
+
  FileDownloadDisable = 1
+
  FileUploadDisable = 1
+
  LocalStorageLimit = 1
+
  ThirdPartyStorage = 1
+
  AssetCacheSize = 10
+
  AutoUpdateDisable = 1
+
  LegacyDomainMatching = 0
+
  LocalFileLegacyAction = 0
+
  AllowUserLocalTrust = 0
+
  # DisableSockets = 1
+
  OverrideGPUValidation = 1
+
</nowiki>}}
+
  
You can also refer to the [http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/files/mms.cfg mms.cfg from Gentoo], which is extensively commented.
+
To enable video decoding with [[hardware video acceleration]], add/uncomment the following line:
 +
EnableLinuxHWVideoDecode = 1
 +
It might also be required to add/uncomment the following line:
 +
OverrideGPUValidation = 1
  
 
==== Disable the "Press ESC to exit full screen mode" message ====
 
==== Disable the "Press ESC to exit full screen mode" message ====
For a way to disable this message see [http://ubuntuforums.org/showthread.php?t=1839293 this ubuntuforums.org post].
 
  
Backup {{ic|libflashplayer.so}}:
+
There is no solution other than patching the Flash plugin. Please note only the NPAPI plugin is supported. Install {{aur|flash-fullscreen-patcher}}{{Broken package link|{{aur-mirror|flash-fullscreen-patcher}}}} which provides wine as a required dependency since the patch has been initially made for Windows.
  # cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup
+
  
Make a copy of it in your home directory:
+
After the package has been installed, backup {{ic|libflashplayer.so}}:
  # cp /usr/lib/mozilla/plugins/libflashplayer.so ~/
+
# cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup
  
[[Pacman|Install]] {{Pkg|wine}} from the [[official repositories]].
+
Then, patch {{ic|libflashplayer.so}}:
 +
# flash-fullscreen-patcher.sh -f /usr/lib/mozilla/plugins/libflashplayer.so
  
Download {{ic|Flash Fullscreen Patcher.zip}} from [http://forum.videohelp.com/threads/304807-How-to-remove-annoying-Press-Esc-to-message-in-Flash-Video this page], extract and execute with {{ic|wine}}:
+
If you use Firefox and want to remove the message ''Press ESC to exit full screen mode in HTML5 videos'' too, go to about:config and set {{ic|full-screen-api.warning.timeout}} to {{ic|0}}.
  
  $ wget http://forum.videohelp.com/attachments/9255-1319291919/Flash%20Fullscreen%20Patcher.zip
+
Alternatively, install Firefox extension [https://addons.mozilla.org/firefox/addon/disable-html5-fullscreen-alert/ Disable HTML5 Fullscreen Alert], which will suppress full screen warnings for HTML5 content.
  $ unzip Flash\ Fullscreen\ Patcher.zip
+
  $ wine Flash\ Fullscreen\ Patcher.exe
+
  
Patch {{ic|libflashplayer.so}} (the one from your home directory) using the GUI.
+
==== Multiple monitor full-screen fix ====
Copy the patched Flash Player back to the plugins directory:
+
  # cp ~/libflashplayer.so /usr/lib/mozilla/plugins/
+
  
==PDF viewer==
+
When using a multiple monitor setup, or swapping between virtual desktops, it is possible to lose focus on a fullscreen flash window. In such a case, the adobe flash-plugin will automatically exit full-screen mode. This may not be to your liking.
 +
 
 +
Unfortunately, this behavior is hard coded into the binary. In order to change this behavior it is necessary to alter the binary.
 +
 
 +
Fixing this issue only works for the NPAPI plugin and this issue can be fixed via 3 ways.
 +
 
 +
* Using {{aur|flash-fullscreen-patcher}}{{Broken package link|{{aur-mirror|flash-fullscreen-patcher}}}} which providess wine as a required dependency since the patch has been initially made for Windows.
 +
 
 +
:After the package has been installed, backup {{ic|libflashplayer.so}}:
 +
:{{bc|# cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup}}
 +
 
 +
:Then, patch libflashplayer.so:
 +
:{{bc|# flash-fullscreen-patcher.sh -i /usr/lib/mozilla/plugins/libflashplayer.so}}
 +
 
 +
* Using the {{AUR|flashplugin-focusfix}}.
 +
 
 +
* [http://www.webupd8.org/2012/10/ubuntu-multi-monitor-tweaks-full-screen.html Patching manually]:
 +
 
 +
:After the package has been installed, backup {{ic|libflashplayer.so}}:
 +
:{{bc|# cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup}}
 +
 
 +
:Then, you will need to alter that file using a hex editor like {{Pkg|ghex}}. You must open it with root privileges obviously.
 +
:{{bc|# ghex /usr/lib/mozilla/plugins/libflashplayer.so}}
 +
 
 +
:Using the hex editor find the string {{ic|_NET_ACTIVE_WINDOW}}. In ghex the readable string is on the right hand side of the window, and the hex is on the left, you are trying to locate the readable string. It should be easy to find using a search function.
 +
 
 +
:Upon finding {{ic|_NET_ACTIVE_WINDOW}} rewrite the line, but '''do not''' change the length of the line, for example {{ic|_NET_ACTIVE_WINDOW}} becomes {{ic|_XET_ACTIVE_WINDOW}}.
 +
 
 +
:Save the binary, and restart any processes using the plugin (as this will crash any instance of the plugin in use.)
 +
 
 +
==== Playing DRM-protected content ====
 +
 
 +
See [[Flash DRM content]].
 +
 
 +
=== Shumway ===
 +
 
 +
[http://mozilla.github.io/shumway/ Shumway] is an HTML5 technology experiment that explores building a faithful and efficient renderer for the SWF file format without native code assistance. The plugin may be installed directly from [http://mozilla.github.io/shumway/ Mozilla's github.io site]. According to the [https://github.com/mozilla/shumway/wiki Shumway wiki], "Integration with Firefox is a possibility if the experiment proves successful." 
 +
 
 +
Shumway is also embedded in Firefox Nightly/Aurora builds.
 +
 
 +
=== Gnash ===
 +
 
 +
See also [[Wikipedia:Gnash]].
 +
 
 +
[http://www.gnu.org/software/gnash/ GNU Gnash] is a free (libre) alternative to Adobe Flash Player. It is available both as a standalone player for desktop computers and embedded devices, as well as a browser plugin, and supports the SWF format up to version 7 (with versions 8 and 9 under development) and about 80% of ActionScript 2.0.
 +
 
 +
There are multiple packages available: {{AUR|gnash}}{{Broken package link|{{aur-mirror|gnash}}}}, {{AUR|gnash-kde4}}{{Broken package link|{{aur-mirror|gnash-kde4}}}}, {{AUR|gnash-git}}.
 +
 
 +
{{Note|If you find that Gnash does not work properly right out of the box, then you may also need to [[install]] the {{Pkg|gstreamer0.10-ffmpeg}} package.}}
 +
 
 +
=== Lightspark ===
 +
 
 +
[http://lightspark.github.com/ Lightspark] is another attempt to provide a free alternative to Adobe Flash aimed at supporting newer Flash formats. Lightspark has the ability to fall back on Gnash for old content, which enables users to install both and enjoy wider coverage. Although it is still very much in development, it supports some [https://github.com/lightspark/lightspark/wiki/Site-Support popular sites].
 +
 
 +
Lightspark can be [[install]]ed with the {{AUR|lightspark}}{{Broken package link|{{aur-mirror|lightspark}}}} or {{AUR|lightspark-git}} package.
 +
 
 +
=== Video players workarounds ===
 +
{{expansion|What does this do? Why is it related to Flash Player?}}
 +
 
 +
==== Open-with Firefox extension ====
 +
 
 +
# Install [https://addons.mozilla.org/firefox/addon/open-with/ Open-with] add-on.
 +
# Open {{ic|about:openwith}}, select ''Add...''
 +
# In the dialog select a video streaming capable player (e.g. [[mpv|/usr/bin/mpv]]).
 +
# (Optional step) Add needed arguments to the player (e.g. you may want {{ic|--force-window --ytdl}} for ''mpv'')
 +
# (Optional step) Choose how to display the dialogs using the left panel.
 +
# Right click on links or visit pages containing videos. If the site is supported, the player will open as expected.
 +
 
 +
The same procedure can be used to associate video downloaders such as ''youtube-dl''.
 +
 
 +
== PDF viewer ==
 +
 
 +
=== PDF.js ===
 +
 
 +
[https://github.com/mozilla/pdf.js PDF.js] is a PDF renderer created by Mozilla and built using HTML5 technologies.
 +
 
 +
It is included in [[Firefox]].
 +
 
 +
For [[Chromium]] and Google Chrome it is available as extension in the [https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm Chrome Web Store].
  
 
=== External PDF viewers ===
 
=== External PDF viewers ===
 +
 
To use an external PDF viewer you need [[#MozPlugger]] or [[#kpartsplugin]].
 
To use an external PDF viewer you need [[#MozPlugger]] or [[#kpartsplugin]].
  
If you want to use MozPlugger with Evince, for example, you have to find the lines containing {{ic|pdf}} in the {{ic|/etc/mozpluggerrc}} file and modify the corresponding line after {{ic|GV()}} as below:  
+
If you want to use MozPlugger with Evince, for example, you have to find the lines containing {{ic|pdf}} in the {{ic|/etc/mozpluggerrc}} file and modify the corresponding line after {{ic|GV()}} as below:
 
  repeat noisy swallow(evince) fill: evince "$file"
 
  repeat noisy swallow(evince) fill: evince "$file"
 
(replace {{ic|evince}} with something else if it is not your viewer of choice).
 
(replace {{ic|evince}} with something else if it is not your viewer of choice).
  
=== Adobe Reader ===
+
If this is not enough, you may need to change 2 values in {{ic|about:config}}:
Due to licensing restrictions, Adobe Reader cannot be distributed from any of the official Arch Linux repositories. There are versions available in the [[AUR]]. Please note that no matter how many votes it receives, Adobe Reader will never be included in the [[official repositories]]. See this [https://aur.archlinux.org/packages.php?ID=16980 comment] for an explanation.
+
* Change {{ic|pdfjs.disabled}}'s value to ''true'';
 +
* Change {{ic|plugin.disable_full_page_plugin_for_types}}'s value to an empty value.
  
Also, there are [https://aur.archlinux.org/packages.php?O=0&K=acroread-&do_Search=Go localizations] available in many languages.
+
Restart and it should work like a charm!
  
==== 32-bit ====
+
=== Adobe Reader ===
Adobe Acrobat Reader is only available as a 32-bit binary. It can be installed with the {{AUR|acroread}} package, available in the [[AUR]].
+
{{Remove|Adobe Reader for Linux is discontinued[http://www.omgubuntu.co.uk/2014/10/adobe-reader-linux-download-pulled-website] and the outdated version that is still available cannot easily run in a 64-bit browser.}}
 +
Adobe Acrobat Reader is only available as a 32-bit binary. It can be installed with the {{AUR|acroread}} package. This package installs the Acrobat Reader application as well as the NPAPI plugin.
  
This package installs the Acrobat Reader application as well as the Firefox plugin. Note that hardware-assisted rendering is unavailable under Linux (at least using a Geforce 8600GTS with driver version 185.18.14).
+
Also, there are [https://aur.archlinux.org/packages.php?O=0&K=acroread-&do_Search=Go localizations] available in many languages.
  
 
==== 64-bit ====
 
==== 64-bit ====
There is yet to be an official 64-bit version of Adobe Reader.
 
  
To use it in a 64-bit environment, you can:
+
There is no 64-bit version of Adobe Reader available. To use it in a 64-bit environment, you can:
 
* Follow [[Install bundled 32-bit system in Arch64|this guide]] originally posted in the forums. It involves creating a chrooted environment that could be reused for other 32-bit only applications.
 
* Follow [[Install bundled 32-bit system in Arch64|this guide]] originally posted in the forums. It involves creating a chrooted environment that could be reused for other 32-bit only applications.
  
* Install {{AUR|bin32-acroread}} (with all its 32-bit dependencies) from [[AUR]]. Be advised that the [[Firefox]] plugin cannot be used ''directly'' with this binary -- it will not load in the 64-bit browser. To load it install the {{Pkg|nspluginwrapper}} plackage from the official [[Multilib|[multilib]]] repository and run:
+
* Install the {{AUR|acroread}} package (with all its 32-bit dependencies). Be advised that the [[Firefox]] plugin cannot be used ''directly'' with this binary -- it will not load in the 64-bit browser. To load it install the {{Pkg|nspluginwrapper}} package from the official [[multilib]] repository and run:
 
  $ nspluginwrapper -v -a -i
 
  $ nspluginwrapper -v -a -i
 
as a normal user. This checks the plugin directory and links the plugins as needed.
 
as a normal user. This checks the plugin directory and links the plugins as needed.
  
 
== Citrix ==
 
== Citrix ==
{{Box||See the main article: [[Citrix]]|#E5E5FF|#FCFCFC}}
+
 
 +
See [[Citrix]].
  
 
== Java (IcedTea) ==
 
== Java (IcedTea) ==
To enable [[Java]] support in your browser, you have two options: use either Oracle's non-free JRE or the [[Wikipedia:Openjdk|OpenJDK]] environment (recommended). For details about why OpenJDK is recommended see [https://mailman.archlinux.org/pipermail/arch-general/2011-August/021671.html this].
 
  
To use OpenJDK, you have to install the [http://icedtea.classpath.org/wiki/Main_Page IcedTea] browser plugin:
+
{{Note|Both Java plugins are NPAPI-only and thus do not work in Chromium and Opera.}}
* {{Pkg|icedtea-web}} for version 6 of the Java environment.
+
* {{Pkg|icedtea-web-java7}} for version 7 of the Java environment.
+
  
If you want to use Oracle's JRE you have to install the {{AUR|jre}} or {{AUR|jre6}} package, available in the [[AUR]].
+
To enable [[Java]] support in your browser, you have two options: the open-source [[Wikipedia:OpenJDK|OpenJDK]] (recommended) or Oracle's proprietary version. For details about why OpenJDK is recommended see [https://mailman.archlinux.org/pipermail/arch-general/2011-August/021671.html this].
  
See [[Java#OpenJDK JVM]] for additional details and references.
+
To use OpenJDK, you have to install the [http://icedtea.classpath.org/wiki/Main_Page IcedTea] browser plugin, {{Pkg|icedtea-web}}.
  
{{Note|If you experience any problems with the Java plugin (it is not recognized by the browser), you can try this [[Flash#Plugins_are_installed_but_not_working|solution]].}}
+
If you want to use Oracle's JRE, install the {{AUR|jre}} package.
  
== Video Plugins ==
+
See [[Java#OpenJDK]] for additional details and references.
  
* {{App|Gecko Media Player|A Mozilla browser plugin to handle media on websites, using MPlayer.|https://sites.google.com/site/kdekorte2/gecko-mediaplayer|{{Pkg|gecko-mediaplayer}}}}
+
{{Note|If you experience any problems with the Java plugin (e.g. it is not recognized by the browser), you can try this [[#Plugins_are_installed_but_not_working|solution]].}}
* {{App|Totem Plugin|A browser plugin based on the [[Wikipedia:Totem (software)|Totem]] media player for [[Gnome]] which uses [[Gstreamer]].|http://projects.gnome.org/totem/|{{Pkg|totem-plugin}}}}
+
 
* {{App|Rosa Media Player Plugin|A Qt-based browser plugin also based on MPlayer.|https://abf.rosalinux.ru/uxteam/ROSA_Media_Player|{{AUR|rosa-media-player-plugin}}}}
+
== Pipelight ==
* {{App|VLC Plugin|A NPAPI-based plugin that uses VLC technologies.|http://git.videolan.org/?p&#61;npapi-vlc.git;a&#61;summary|{{AUR|npapi-vlc-git}}}}
+
 
 +
See [[Pipelight]].
 +
 
 +
== Multimedia playback ==
 +
 
 +
Many browsers support the [[GStreamer]] framework to play multimedia inside HTML5 {{ic|<audio>}} and {{ic|<video>}} elements. Check the optional dependencies of the browser package (or {{Pkg|webkitgtk}}/{{Pkg|webkitgtk2}} if using a webkit-based browser) to see which version of GStreamer is supported: this can be either {{ic|gst-*}} for the current version, or {{ic|gstreamer0.10-*}} for the legacy version. See [[GStreamer#Installation]] for the description of each plugin.
 +
 
 +
=== Other plugins ===
 +
 
 +
* {{App|Gecko Media Player|Mozilla browser plugin to handle media on websites, using MPlayer.|https://sites.google.com/site/kdekorte2/gecko-mediaplayer|{{Pkg|gecko-mediaplayer}}}}
 +
* {{App|GNOME Videos Plugin|Browser plugin based on the [[Wikipedia:GNOME Videos|GNOME Videos]] media player which uses [[GStreamer]].|https://wiki.gnome.org/Apps/Videos|{{Pkg|totem}}}}
 +
* {{App|Rosa Media Player Plugin|Qt-based browser plugin also based on MPlayer.|https://abf.rosalinux.ru/uxteam/ROSA_Media_Player|{{AUR|rosa-media-player-plugin}}}}
 +
* {{App|VLC Plugin|NPAPI-based plugin that uses VLC technologies.|https://code.videolan.org/videolan/npapi-vlc|{{Pkg|npapi-vlc}}}}
  
 
== Other ==
 
== Other ==
 +
 +
=== Hangouts ===
 +
 +
Hangouts plugin can be installed with the {{AUR|google-talkplugin}} package. Installing this plugin is not necessary for fresh version of chromium browser.
 +
Hangouts is a messenger by Google, that allows you to make video call between 15 people simultaneously. While using "new" version, you can share your screen with others like in Skype, but if you switch to "old" version, it will be possible to do the following things together: watching YouTube, making diagrams, editing documents, playing games and other things.
  
 
=== MozPlugger ===
 
=== MozPlugger ===
MozPlugger can be installed with the {{AUR|mozplugger}} package, respectively {{AUR|mozplugger-chromium}}, available in the [[AUR]].
+
 
 +
MozPlugger can be installed with the {{AUR|mozplugger}} package.
  
 
[http://mozplugger.mozdev.org/ MozPlugger] is a Mozilla plugin which can show many types of multimedia inside your browser. To accomplish this, it uses external programs such as MPlayer, xine, Evince, OpenOffice, TiMidity, etc. To modify or add applications to be used by MozPlugger just modify the {{ic|/etc/mozpluggerrc}} file.
 
[http://mozplugger.mozdev.org/ MozPlugger] is a Mozilla plugin which can show many types of multimedia inside your browser. To accomplish this, it uses external programs such as MPlayer, xine, Evince, OpenOffice, TiMidity, etc. To modify or add applications to be used by MozPlugger just modify the {{ic|/etc/mozpluggerrc}} file.
Line 148: Line 235:
 
{{hc|/etc/mozpluggerrc|
 
{{hc|/etc/mozpluggerrc|
 
...
 
...
### OpenOffice
+
### LibreOffice/OpenOffice
 
define([OO],[swallow(VCLSalFrame) fill: libreoffice --nologo --norestore --view $1 "$file"
 
define([OO],[swallow(VCLSalFrame) fill: libreoffice --nologo --norestore --view $1 "$file"
 
     swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
 
     swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
Line 162: Line 249:
 
text/x-c++:hpp:C++ Header File
 
text/x-c++:hpp:C++ Header File
 
     repeat noisy swallow(kate) fill: kate -b "$file"
 
     repeat noisy swallow(kate) fill: kate -b "$file"
 +
}}
 +
 +
To change the default of MPlayer so that [[mpv]] is used instead, change the appropriate lines such that:
 +
{{hc|1=/etc/mozpluggerrc|2=
 +
...
 +
### MPlayer
 +
 +
#define(MP_CMD,[mplayer -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 </dev/null])
 +
define(MP_CMD,[mpv -really-quiet $1 </dev/null])
 +
 +
#define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(-xy $width -wid $window $1)])
 +
define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(--autofit=$width -wid $window $1)])
 +
 +
#define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(MPlayer): MP_CMD($1)])
 +
define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(mpv): MP_CMD($1)])
 +
 +
...
 +
 +
#define(MP_AUDIO,[mplayer -quiet -nojoystick $1 </dev/null])
 +
define(MP_AUDIO,[mpv -really-quiet $1 </dev/null])
 +
 +
#define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mplayer -quiet -nojoystick $1 "$file" </dev/null])
 +
define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mpv -really-quiet $1 "$file" </dev/null])
 +
...
 
}}
 
}}
  
Line 167: Line 278:
  
 
=== kpartsplugin ===
 
=== kpartsplugin ===
 +
 
[http://www.unix-ag.uni-kl.de/~fischer/kpartsplugin/ The KParts plugin] is a plugin that uses KDE's KPart technology to embed different file viewers in the browser, such as Okular (for PDF), Ark (for different archives), Calligra Words (for ODF), etc. It cannot use applications that are not based on the KPart technology.
 
[http://www.unix-ag.uni-kl.de/~fischer/kpartsplugin/ The KParts plugin] is a plugin that uses KDE's KPart technology to embed different file viewers in the browser, such as Okular (for PDF), Ark (for different archives), Calligra Words (for ODF), etc. It cannot use applications that are not based on the KPart technology.
  
The KParts plugin can be installed with the package {{Pkg|kpartsplugin}}, available in the official repositories.
+
The KParts plugin can be installed with the package {{Pkg|kpartsplugin}}.
 +
 
 +
== Troubleshooting ==
  
==Troubleshooting==
+
=== Flash Player: no sound ===
  
=== Flash Player: No sound ===
+
Flash Player outputs its sound only through the default [[ALSA]] device, which is number '''0'''. If you have multiple sound devices (a very common example is having a sound card and HDMI output in the video card), then your preferred device may have a different number.
Flash Player outputs its sound only through the default [[Advanced Linux Sound Architecture|ALSA]] device, which is number '''0'''. If you have multiple sound devices (a very common example is having a sound card and HDMI output in the video card), then your preferred device may have a different number.
+
  
 
For a list of available devices with their respective numbers, run:
 
For a list of available devices with their respective numbers, run:
$ aplay -l
+
{{hc|$ aplay -l|
 
  **** List of PLAYBACK Hardware Devices ****
 
  **** List of PLAYBACK Hardware Devices ****
 
  card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
 
  card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Line 188: Line 301:
 
   Subdevices: 1/1
 
   Subdevices: 1/1
 
   Subdevice #0: subdevice #0
 
   Subdevice #0: subdevice #0
 
+
}}
 
In this case, the HDMI output is {{ic|card 0}} and the sound card is {{ic|card 1}}. To make your sound card the default for ALSA, create the file {{ic|.asoundrc}} in your home directory, with the following content:
 
In this case, the HDMI output is {{ic|card 0}} and the sound card is {{ic|card 1}}. To make your sound card the default for ALSA, create the file {{ic|.asoundrc}} in your home directory, with the following content:
 
{{hc|~/.asoundrc|
 
{{hc|~/.asoundrc|
Line 202: Line 315:
 
}}
 
}}
  
=== Flash Player: Blocking sound for other applications or delayed playback ===
+
=== Flash Player: blocking sound for other applications or delayed playback ===
 +
 
 
If sound is delayed within Flash videos or Flash stops sound from any other application, then make sure you do not have {{ic|snd_pcm_oss}} module loaded:
 
If sound is delayed within Flash videos or Flash stops sound from any other application, then make sure you do not have {{ic|snd_pcm_oss}} module loaded:
 
  $ lsmod | grep snd_pcm_oss
 
  $ lsmod | grep snd_pcm_oss
Line 209: Line 323:
 
and restart the browser to see if it helps.
 
and restart the browser to see if it helps.
  
=== Flash Player: Bad (choppy) sound on the 64-bit version ===
+
=== Flash Player: performance ===
There is a problem with Flash plugin 11 on 64-bit systems and a new {{ic|memcpy}} routine in {{Pkg|glibc}} (for more details see [https://bugzilla.redhat.com/show_bug.cgi?id&#;638477 this Fefora bug report]), which makes the sound choppy on MP3 streams. Current workarounds are:
+
* replacing the {{ic|memcpy}} routine as suggested in [http://forums.fedoraforum.org/showthread.php?t=258346 this thread].
+
* installing {{AUR|flashplugin-square}} from the [[AUR]] (this is a version of the Flash plugin with working hardware acceleration).
+
  
=== Flash Player: Performance ===
+
Adobe's Flash plugin has some serious performance issues, especially when CPU frequency scaling is used. There seems to be a policy not to use the whole CPU workload, so the frequency scaling governor does not clock the CPU any higher. To work around this issue, see [[CPU frequency scaling#Switching threshold]]
Adobe's Flash plugin has some serious performance issues, especially when CPU frequency scaling is used. There seems to be a policy not to use the whole CPU workload, so the frequency scaling governor does not clock the CPU any higher. To work around this issue, see [[cpufrequtils#Changing the ondemand governor's threshold]]
+
 
 +
=== Flash Player: low webcam resolution ===
  
=== Flash Player: Low webcam resolution ===
 
 
If your webcam has low resolution in Flash (the image looks very pixelated) you can try starting your browser with this:
 
If your webcam has low resolution in Flash (the image looks very pixelated) you can try starting your browser with this:
 
  $ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so [broswer]
 
  $ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so [broswer]
  
=== Flash Player: Black bars in full screen playback on multi-headed setups ===
+
=== Flash Player: black bars in full screen playback on multi-headed setups ===
 +
 
 
The Flash plugin has a known bug where the full screen mode does not really work when you have a multi-monitor setup. Apparently, it incorrectly determines the full screen resolution, so the full screen Flash Player fills the correct monitor but gets scaled as if the monitor had the resolution of the total display area.
 
The Flash plugin has a known bug where the full screen mode does not really work when you have a multi-monitor setup. Apparently, it incorrectly determines the full screen resolution, so the full screen Flash Player fills the correct monitor but gets scaled as if the monitor had the resolution of the total display area.
  
 
To fix this, you can use the "hack" described [http://al.robotfuzz.com/content/workaround-fullscreen-flash-linux-multiheaded-desktops here]. Simply download the source from the link given on the page, and follow the instructions in the README.
 
To fix this, you can use the "hack" described [http://al.robotfuzz.com/content/workaround-fullscreen-flash-linux-multiheaded-desktops here]. Simply download the source from the link given on the page, and follow the instructions in the README.
  
{{Tip|The hack is available in the [[AUR]] and can be installed with the {{AUR|fullscreenhack}} package.}}
+
{{Tip|The hack is available and can be installed with the {{AUR|fullscreenhack}}{{Broken package link|{{aur-mirror|fullscreenhack}}}} package.}}
  
{{Note|While the author mentions using Nvidia's TwinView, the hack should work for any multi-monitor setup.}}
+
{{Note|While the author mentions using NVDIA's TwinView, the hack should work for any multi-monitor setup.}}
  
=== Flash Player: Blue tint on videos with Nvidia ===
+
=== Flash Player: videos not working on older systems ===
  
An issue with {{Pkg|flashplugin}} versions 11.2.202.228-1 and 11.2.202.233-1 causes it to send the U/V panes in the incorrect order resulting in a blue tint on certain videos. Version 0.5 of {{Pkg|libvdpau}} includes a workaround to fix this, see the [http://lists.x.org/archives/xorg-announce/2012-September/002066.html official announcement].
+
If you have Adobe Flash installed on an older system and you start playing a video which simply turns black with nothing happening, it is most likely that your CPU does not support SSE2. You can simply check this by looking at your CPU flags with this command:
 +
$ grep sse2 /proc/cpuinfo
  
=== Flash Player: Leaking overlay with Nvidia ===
+
{{Expansion|sandfox is unmaintained and only uses rudimentary sandboxing; use a modern alternative like [https://github.com/thestinger/playpen playpen] instead. Or even better, circument the issue with external players like [[mpv]]}}
  
This bug is due to the incorrect color key being used by the {{Pkg|flashplugin}} version 11.2.202.228-1 (see [http://www.nvnews.net/vbulletin/showpost.php?p=2514210&postcount=102 this post] on the Nvidia forums) and causes the Flash content to "leak" into other pages or solid black backgrounds. To avoid this issue simply export {{ic|1=VDPAU_NVIDIA_NO_OVERLAY=1}} within either your shell profile (e.g. {{ic|~/.bash_profile}} or {{ic|~/.zprofile}}) or {{ic|~/.xinitrc}}
+
If no results are returned, then you need to install an older version of Flash (for example 10.3, or 11.1). Older versions possibly will have vulnerabilities. You should then consider sandboxing Firefox using the {{AUR|sandfox}} package See the [https://igurublog.wordpress.com/downloads/script-sandfox/ sandfox homepage] for usage information.
  
=== Flash Player: Videos not working on older systems ===
+
Older versions of Flash are available here:
If you have Adobe Flash installed on an older system and you start playing a video which simply turns black with nothing happening, it is most likely that your CPU does not support SSE2. You can simply check this by looking at your CPU flags with this command:
+
https://www.adobe.com/products/flashplayer/distribution3.html
# cat /proc/cpuinfo | grep sse2
+
You need to copy {{ic|libflashplayer.so}} to the folder {{ic|/usr/lib/mozilla/plugins/}}
  
If no results are returned, then you need to install an older version of Flash (for example 10.3). Older versions possibly will have vulnerabilities. You should then consider sandboxing Firefox using {{AUR|sandfox}}, available in the [[AUR]]. See the [https://igurublog.wordpress.com/downloads/script-sandfox/ sandfox homepage] for usage information.
+
The most recent package without SSE2 is {{ic|flashplugin-11.1.102.63-1-i686.pkg.tar.xz}}. If you use the packaged version, you have to add {{ic|IgnorePkg &#61; flashplugin}} to {{ic|/etc/pacman.conf}}.
  
Older versions of Flash are available here:
+
=== Flash Player: plugin version still shown older version after upgrade ===
http://www.adobe.com/products/flashplayer/distribution3.html
+
  
You need to copy {{ic|libflashplayer.so}} to the folder {{ic|/usr/lib/mozilla/plugins/}}
+
==== Firefox ====
 +
 
 +
Solution for Firefox: delete file "pluginreg.dat" in user's profile directory.
 +
 
 +
* Close firefox
 +
* Go to /home/<username>/.mozilla/firefox/<profile_folder>/
 +
* Delete file "pluginreg.dat"
 +
 
 +
Firefox will automatically rebuild this file once it is started again. Make sure to substitute <username> and <profile_folder> with the appropriate information.
  
 
=== Plugins are installed but not working ===
 
=== Plugins are installed but not working ===
 +
 
A common problem is that the plugin path is unset. This typically occurs on a new install, when the user has not re-logged in before running Firefox after the installation. Test if the path is unset:
 
A common problem is that the plugin path is unset. This typically occurs on a new install, when the user has not re-logged in before running Firefox after the installation. Test if the path is unset:
  echo $MOZ_PLUGIN_PATH
+
  $ printenv MOZ_PLUGIN_PATH
 
If unset, then either re-login, or source {{ic|/etc/profile.d/mozilla-common.sh}} and start Firefox from the same shell:
 
If unset, then either re-login, or source {{ic|/etc/profile.d/mozilla-common.sh}} and start Firefox from the same shell:
  . /etc/profile.d/mozilla-common.sh && firefox
+
  $ source /etc/profile.d/mozilla-common.sh && firefox
  
 
=== Gecko Media Player will not play Apple trailers ===
 
=== Gecko Media Player will not play Apple trailers ===
 +
 
If Apple Trailers appear to start to play and then fail, try setting the user agent for your browser to:
 
If Apple Trailers appear to start to play and then fail, try setting the user agent for your browser to:
 
  QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)
 
  QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)
 +
 +
== See also ==
 +
 +
* [https://trisquel.info/en/wiki/play-videos-without-using-flash Play videos without using Flash] at the Trisquel Wiki

Latest revision as of 21:18, 16 July 2016

Related articles

There are two types of browser plugins, based on the plugin API they use:

  • Netscape plugin API (NPAPI): these plugins work in Firefox and most other browsers (not in Chromium and Opera).
  • Pepper plugin API (PPAPI): these plugins work only in Chromium (and Chrome) and Opera.

Most plugins on this page are NPAPI-only, unless noted otherwise.

Flash Player

Adobe Flash Player

Installation

The package you will need to install depends on the browser you use.

  • The NPAPI version can be installed with the flashplugin package. This plugin was discontinued by Adobe and is stuck at version 11.2; although, Adobe will provide security updates for 5 years after its release (i.e. until March 2017[1][2]).
  • The PPAPI version is shipped with Google Chrome. If you are using Chromium or any other browser using the PPAPI interface such as Opera, see Chromium#Flash Player plugin for more information.
Note:
  • Some Flash apps may require the ttf-ms-fontsAUR package in order to properly render text.
  • The freshplayerpluginAUR package provides an experimental adapter to use chromium-pepper-flashAUR with NPAPI based browsers like Firefox. It can be configured (e.g. for enabling HW-acceleration) by copying /usr/share/freshplayerplugin/freshwrapper.conf.example to ~/.config/freshwrapper.conf.

Upgrade

If you are using Firefox, please make sure to follow this instruction first.

Configuration

To change the preferences (privacy settings, resource usage, etc.) of Flash Player, right click on any embedded Flash content (for instance adobe's flash home) and choose Settings from the menu.

You can also use the Flash settings file /etc/adobe/mms.cfg. Gentoo has an extensively commented example mms.cfg.

To enable video decoding with hardware video acceleration, add/uncomment the following line:

EnableLinuxHWVideoDecode = 1

It might also be required to add/uncomment the following line:

OverrideGPUValidation = 1

Disable the "Press ESC to exit full screen mode" message

There is no solution other than patching the Flash plugin. Please note only the NPAPI plugin is supported. Install flash-fullscreen-patcherAUR[broken link: archived in aur-mirror] which provides wine as a required dependency since the patch has been initially made for Windows.

After the package has been installed, backup libflashplayer.so:

# cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup 

Then, patch libflashplayer.so:

# flash-fullscreen-patcher.sh -f /usr/lib/mozilla/plugins/libflashplayer.so

If you use Firefox and want to remove the message Press ESC to exit full screen mode in HTML5 videos too, go to about:config and set full-screen-api.warning.timeout to 0.

Alternatively, install Firefox extension Disable HTML5 Fullscreen Alert, which will suppress full screen warnings for HTML5 content.

Multiple monitor full-screen fix

When using a multiple monitor setup, or swapping between virtual desktops, it is possible to lose focus on a fullscreen flash window. In such a case, the adobe flash-plugin will automatically exit full-screen mode. This may not be to your liking.

Unfortunately, this behavior is hard coded into the binary. In order to change this behavior it is necessary to alter the binary.

Fixing this issue only works for the NPAPI plugin and this issue can be fixed via 3 ways.

After the package has been installed, backup libflashplayer.so:
# cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup
Then, patch libflashplayer.so:
# flash-fullscreen-patcher.sh -i /usr/lib/mozilla/plugins/libflashplayer.so
After the package has been installed, backup libflashplayer.so:
# cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so.backup
Then, you will need to alter that file using a hex editor like ghex. You must open it with root privileges obviously.
# ghex /usr/lib/mozilla/plugins/libflashplayer.so
Using the hex editor find the string _NET_ACTIVE_WINDOW. In ghex the readable string is on the right hand side of the window, and the hex is on the left, you are trying to locate the readable string. It should be easy to find using a search function.
Upon finding _NET_ACTIVE_WINDOW rewrite the line, but do not change the length of the line, for example _NET_ACTIVE_WINDOW becomes _XET_ACTIVE_WINDOW.
Save the binary, and restart any processes using the plugin (as this will crash any instance of the plugin in use.)

Playing DRM-protected content

See Flash DRM content.

Shumway

Shumway is an HTML5 technology experiment that explores building a faithful and efficient renderer for the SWF file format without native code assistance. The plugin may be installed directly from Mozilla's github.io site. According to the Shumway wiki, "Integration with Firefox is a possibility if the experiment proves successful."

Shumway is also embedded in Firefox Nightly/Aurora builds.

Gnash

See also Wikipedia:Gnash.

GNU Gnash is a free (libre) alternative to Adobe Flash Player. It is available both as a standalone player for desktop computers and embedded devices, as well as a browser plugin, and supports the SWF format up to version 7 (with versions 8 and 9 under development) and about 80% of ActionScript 2.0.

There are multiple packages available: gnashAUR[broken link: archived in aur-mirror], gnash-kde4AUR[broken link: archived in aur-mirror], gnash-gitAUR.

Note: If you find that Gnash does not work properly right out of the box, then you may also need to install the gstreamer0.10-ffmpeg package.

Lightspark

Lightspark is another attempt to provide a free alternative to Adobe Flash aimed at supporting newer Flash formats. Lightspark has the ability to fall back on Gnash for old content, which enables users to install both and enjoy wider coverage. Although it is still very much in development, it supports some popular sites.

Lightspark can be installed with the lightsparkAUR[broken link: archived in aur-mirror] or lightspark-gitAUR package.

Video players workarounds

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: What does this do? Why is it related to Flash Player? (Discuss in Talk:Browser plugins#)

Open-with Firefox extension

  1. Install Open-with add-on.
  2. Open about:openwith, select Add...
  3. In the dialog select a video streaming capable player (e.g. /usr/bin/mpv).
  4. (Optional step) Add needed arguments to the player (e.g. you may want --force-window --ytdl for mpv)
  5. (Optional step) Choose how to display the dialogs using the left panel.
  6. Right click on links or visit pages containing videos. If the site is supported, the player will open as expected.

The same procedure can be used to associate video downloaders such as youtube-dl.

PDF viewer

PDF.js

PDF.js is a PDF renderer created by Mozilla and built using HTML5 technologies.

It is included in Firefox.

For Chromium and Google Chrome it is available as extension in the Chrome Web Store.

External PDF viewers

To use an external PDF viewer you need #MozPlugger or #kpartsplugin.

If you want to use MozPlugger with Evince, for example, you have to find the lines containing pdf in the /etc/mozpluggerrc file and modify the corresponding line after GV() as below:

repeat noisy swallow(evince) fill: evince "$file"

(replace evince with something else if it is not your viewer of choice).

If this is not enough, you may need to change 2 values in about:config:

  • Change pdfjs.disabled's value to true;
  • Change plugin.disable_full_page_plugin_for_types's value to an empty value.

Restart and it should work like a charm!

Adobe Reader

Tango-edit-cut.pngThis section is being considered for removal.Tango-edit-cut.png

Reason: Adobe Reader for Linux is discontinued[3] and the outdated version that is still available cannot easily run in a 64-bit browser. (Discuss in Talk:Browser plugins#)

Adobe Acrobat Reader is only available as a 32-bit binary. It can be installed with the acroreadAUR package. This package installs the Acrobat Reader application as well as the NPAPI plugin.

Also, there are localizations available in many languages.

64-bit

There is no 64-bit version of Adobe Reader available. To use it in a 64-bit environment, you can:

  • Follow this guide originally posted in the forums. It involves creating a chrooted environment that could be reused for other 32-bit only applications.
  • Install the acroreadAUR package (with all its 32-bit dependencies). Be advised that the Firefox plugin cannot be used directly with this binary -- it will not load in the 64-bit browser. To load it install the nspluginwrapper package from the official multilib repository and run:
$ nspluginwrapper -v -a -i

as a normal user. This checks the plugin directory and links the plugins as needed.

Citrix

See Citrix.

Java (IcedTea)

Note: Both Java plugins are NPAPI-only and thus do not work in Chromium and Opera.

To enable Java support in your browser, you have two options: the open-source OpenJDK (recommended) or Oracle's proprietary version. For details about why OpenJDK is recommended see this.

To use OpenJDK, you have to install the IcedTea browser plugin, icedtea-web.

If you want to use Oracle's JRE, install the jreAUR package.

See Java#OpenJDK for additional details and references.

Note: If you experience any problems with the Java plugin (e.g. it is not recognized by the browser), you can try this solution.

Pipelight

See Pipelight.

Multimedia playback

Many browsers support the GStreamer framework to play multimedia inside HTML5 <audio> and <video> elements. Check the optional dependencies of the browser package (or webkitgtk/webkitgtk2 if using a webkit-based browser) to see which version of GStreamer is supported: this can be either gst-* for the current version, or gstreamer0.10-* for the legacy version. See GStreamer#Installation for the description of each plugin.

Other plugins

  • Gecko Media Player — Mozilla browser plugin to handle media on websites, using MPlayer.
https://sites.google.com/site/kdekorte2/gecko-mediaplayer || gecko-mediaplayer
https://wiki.gnome.org/Apps/Videos || totem
  • Rosa Media Player Plugin — Qt-based browser plugin also based on MPlayer.
https://abf.rosalinux.ru/uxteam/ROSA_Media_Player || rosa-media-player-pluginAUR
  • VLC Plugin — NPAPI-based plugin that uses VLC technologies.
https://code.videolan.org/videolan/npapi-vlc || npapi-vlc

Other

Hangouts

Hangouts plugin can be installed with the google-talkpluginAUR package. Installing this plugin is not necessary for fresh version of chromium browser. Hangouts is a messenger by Google, that allows you to make video call between 15 people simultaneously. While using "new" version, you can share your screen with others like in Skype, but if you switch to "old" version, it will be possible to do the following things together: watching YouTube, making diagrams, editing documents, playing games and other things.

MozPlugger

MozPlugger can be installed with the mozpluggerAUR package.

MozPlugger is a Mozilla plugin which can show many types of multimedia inside your browser. To accomplish this, it uses external programs such as MPlayer, xine, Evince, OpenOffice, TiMidity, etc. To modify or add applications to be used by MozPlugger just modify the /etc/mozpluggerrc file.

For example, MozPlugger uses OpenOffice by default to open doc files. To change it to use LibreOffice instead, look for the OpenOffice section:

/etc/mozpluggerrc
...
### OpenOffice
define([OO],[swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: ooffice -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: soffice -nologo $1 "$file"])
...

and add LibreOffice at the beginning of the list:

/etc/mozpluggerrc
...
### LibreOffice/OpenOffice
define([OO],[swallow(VCLSalFrame) fill: libreoffice --nologo --norestore --view $1 "$file"
    swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: ooffice -nologo -norestore -view $1 "$file"
    swallow(VCLSalFrame) fill: soffice -nologo $1 "$file"])
...
Note: Be sure to also choose LibreOffice as your preferred application to open doc files.

As another simple example, if you want to open cpp files with your favorite text editor (we will use Kate) to get syntax highlighting, just add a new section to your mozpluggerrc file:

/etc/mozpluggerrc
text/x-c++:cpp:C++ Source File
text/x-c++:hpp:C++ Header File
    repeat noisy swallow(kate) fill: kate -b "$file"

To change the default of MPlayer so that mpv is used instead, change the appropriate lines such that:

/etc/mozpluggerrc
...
### MPlayer

#define(MP_CMD,[mplayer -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 </dev/null])
define(MP_CMD,[mpv -really-quiet $1 </dev/null])

#define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(-xy $width -wid $window $1)])
define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(--autofit=$width -wid $window $1)])

#define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(MPlayer): MP_CMD($1)])
define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(mpv): MP_CMD($1)])

...

#define(MP_AUDIO,[mplayer -quiet -nojoystick $1 </dev/null])
define(MP_AUDIO,[mpv -really-quiet $1 </dev/null])

#define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mplayer -quiet -nojoystick $1 "$file" </dev/null])
define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mpv -really-quiet $1 "$file" </dev/null])
...

For a more complete list of MozPlugger options see this page.

kpartsplugin

The KParts plugin is a plugin that uses KDE's KPart technology to embed different file viewers in the browser, such as Okular (for PDF), Ark (for different archives), Calligra Words (for ODF), etc. It cannot use applications that are not based on the KPart technology.

The KParts plugin can be installed with the package kpartsplugin.

Troubleshooting

Flash Player: no sound

Flash Player outputs its sound only through the default ALSA device, which is number 0. If you have multiple sound devices (a very common example is having a sound card and HDMI output in the video card), then your preferred device may have a different number.

For a list of available devices with their respective numbers, run:

$ aplay -l
 **** List of PLAYBACK Hardware Devices ****
 card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
 card 1: DX [Xonar DX], device 0: Multichannel [Multichannel]
   Subdevices: 0/1
   Subdevice #0: subdevice #0
 card 1: DX [Xonar DX], device 1: Digital [Digital]
   Subdevices: 1/1
   Subdevice #0: subdevice #0

In this case, the HDMI output is card 0 and the sound card is card 1. To make your sound card the default for ALSA, create the file .asoundrc in your home directory, with the following content:

~/.asoundrc
pcm.!default {
    type hw
    card 1
}
 
ctl.!default {
    type hw
    card 1
}

Flash Player: blocking sound for other applications or delayed playback

If sound is delayed within Flash videos or Flash stops sound from any other application, then make sure you do not have snd_pcm_oss module loaded:

$ lsmod | grep snd_pcm_oss

You can unload it:

# rmmod snd_pcm_oss

and restart the browser to see if it helps.

Flash Player: performance

Adobe's Flash plugin has some serious performance issues, especially when CPU frequency scaling is used. There seems to be a policy not to use the whole CPU workload, so the frequency scaling governor does not clock the CPU any higher. To work around this issue, see CPU frequency scaling#Switching threshold

Flash Player: low webcam resolution

If your webcam has low resolution in Flash (the image looks very pixelated) you can try starting your browser with this:

$ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so [broswer]

Flash Player: black bars in full screen playback on multi-headed setups

The Flash plugin has a known bug where the full screen mode does not really work when you have a multi-monitor setup. Apparently, it incorrectly determines the full screen resolution, so the full screen Flash Player fills the correct monitor but gets scaled as if the monitor had the resolution of the total display area.

To fix this, you can use the "hack" described here. Simply download the source from the link given on the page, and follow the instructions in the README.

Tip: The hack is available and can be installed with the fullscreenhackAUR[broken link: archived in aur-mirror] package.
Note: While the author mentions using NVDIA's TwinView, the hack should work for any multi-monitor setup.

Flash Player: videos not working on older systems

If you have Adobe Flash installed on an older system and you start playing a video which simply turns black with nothing happening, it is most likely that your CPU does not support SSE2. You can simply check this by looking at your CPU flags with this command:

$ grep sse2 /proc/cpuinfo

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: sandfox is unmaintained and only uses rudimentary sandboxing; use a modern alternative like playpen instead. Or even better, circument the issue with external players like mpv (Discuss in Talk:Browser plugins#)

If no results are returned, then you need to install an older version of Flash (for example 10.3, or 11.1). Older versions possibly will have vulnerabilities. You should then consider sandboxing Firefox using the sandfoxAUR package See the sandfox homepage for usage information.

Older versions of Flash are available here: https://www.adobe.com/products/flashplayer/distribution3.html You need to copy libflashplayer.so to the folder /usr/lib/mozilla/plugins/

The most recent package without SSE2 is flashplugin-11.1.102.63-1-i686.pkg.tar.xz. If you use the packaged version, you have to add IgnorePkg = flashplugin to /etc/pacman.conf.

Flash Player: plugin version still shown older version after upgrade

Firefox

Solution for Firefox: delete file "pluginreg.dat" in user's profile directory.

  • Close firefox
  • Go to /home/<username>/.mozilla/firefox/<profile_folder>/
  • Delete file "pluginreg.dat"

Firefox will automatically rebuild this file once it is started again. Make sure to substitute <username> and <profile_folder> with the appropriate information.

Plugins are installed but not working

A common problem is that the plugin path is unset. This typically occurs on a new install, when the user has not re-logged in before running Firefox after the installation. Test if the path is unset:

$ printenv MOZ_PLUGIN_PATH

If unset, then either re-login, or source /etc/profile.d/mozilla-common.sh and start Firefox from the same shell:

$ source /etc/profile.d/mozilla-common.sh && firefox

Gecko Media Player will not play Apple trailers

If Apple Trailers appear to start to play and then fail, try setting the user agent for your browser to:

QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)

See also