PDA

View Full Version : Mute Firefox with Fedora



JackC
19th November 2014, 06:26 PM
Hello all,

here's a quick guide, for muting Firefox. This may be nothing spectacular or even
new to Fedora professionals, but not getting any useful information at all when
searching on the web, I thought I'd share it anyway.

Now first off, why would I want to mute Firefox anyway? Simply, because it can
be very annoying, when you're browsing the web while listening to some music
on xmms or watching a movie with mplayer, when suddently some flash video
add pops up up very loudly. I sometimes watch videos on pbc sites in the background,
so an addblocker isn't always helpful either. To sum it up: there is situations when
I want audio on xmms but not with firefox. There's a handy plugin for firefox, called
muter, but unfortunately it only works with Windows ... so I needed a different solution.

When looking around in my system a bit, I found out, that the solution is already
installed by default: Pulseaudio.
Pulseaudio can handle volume control on a per-application basis.
Here's what I did, step by step:

1. Launch pulseaudio volume control (pavucontrol).
2. Switch to the "Playback" tab.
3. When Firefox starts playing sound, e.g. in a youtube video, it'll be shown on the playback
tab as "Alsa-plugin [plugin-container]" and you can simply check to mute it.

http://carlica.net/pics/screenshot1.gif

4. As you can see from the screenshot, I can still play sound with xmms, while
I have muted plugin-container.
5. To unmute, just uncheck it again.

This should mute most of the sounds on the web. In rare cases, e.g. html5 embedded,
sound will be played directly through firefox, in which case you'd have to mute that
source seperately.