See these tutorials:
Flash Issues & Solutions
Flash Optimization
Although they are primarily focused on Firefox, most of the content applies to Chrome as well.
For Firefox users with Flash problems, get these two extensions I develop:
FLASH-AID: remove conflicting flash plugins from Ubuntu Linux systems and install the appropriate version according to system architecture.
FlashVideoReplacer: this extension replaces embedded flash videos with Quicktime or Windows Media Player compatible videos, allowing to watch flash streaming content with a less CPU intensive plugin, like gecko mediaplayer (recommended), gxine, kaffeine, mozplugger, totem, xine, vlc (not recommended).
Preface
I was able to replicate Dave's issue in experiments, and they lead me to believe that Flash is somehow sending the sound to PulseAudio in such a way that it creates a lot of network traffic (think lots of tiny packets, not bandwidth); this overwhelms the network "tunnel" PulseAudio has created, i.e. you have
Youtube => [PA-client => network => PA-server] => speakers
I could solve the issue by putting both the client and server on their own virtual network, giving them effectively infinitely fast connectivity (10 Gbits/sec) between them; obviously, that doesn't work for real-world networks :)
So, a bit of googling and this post and this one gave me the idea of dropping the tunnel (middleman, as Dave aptly put it), and having the client talk directly to the server, i.e.
Youtube => network => PA-server => speakers
And that worked for me; Flash videos/sound play flawlessly.
Let's try it!
This assumes your client-server are on a local network (router, etc.)
Preliminary: On the client machine, if you have an existing setup, open paprefs
and uncheck everything; then kill PulseAudio to be sure.
On the server machine (i.e., the one with the speakers), start PA Preferences (paprefs
) and set it up as follows:
![enter image description here](https://i.stack.imgur.com/YNcVe.png)
- Then close it, and kill PulseAudio in a terminal as shown, wait, and check that it is now listening on port 4713:
![enter image description here](https://i.stack.imgur.com/tBbNe.png)
If you don't see it, open paprefs
again and check the remaining boxes in the Network Access and Network Server tabs (they don't hurt)
Make sure you know the server's IP address - use ifconfig
, etc. We'll use 192.168.0.4
in our example.
On the client machine, open a terminal, and test our direct connection first, with a speech sample WAV (replace 192.168... with your server IP!)
wget http://www.signalogic.com/melp/EngSamples/Orig/female.wav
paplay --server=192.168.0.4:4713 female.wav
- Abort with Ctrl-C if it works, it can get boring ;)
Now, close all running browser instances, and then start it (assuming Firefox here with the following syntax):
PULSE_SERVER=192.168.0.4:4713 firefox &
Replace 192...
with the appropriate IP for your server!
In that Firefox instance, open up Youtube (or whichever Flash video site), and try playing videos back --- fingers crossed, it should work without stuttering/pausing!
Make it stick
If you want to make this fix apply to all programs instead of having to put PULSE_SERVER=192.168.0.4:4713
in front of every command, edit /etc/environment
on the client and add PULSE_SERVER=192.168.0.4:4713
on a new line at the end of the file. Also add a line break at the end.
This will make all sound on the client go to the Pulseaudio server, so be sure that's what you want before making this edit to your /etc/environment
file.
Reboot, and enjoy a smooooooth audio experience. ;)
Best Answer
well, it seems like there is a bug in Flash version 11.2.202.228. [launchpad]
Here I did find some clues.
So I downloaded the previous version (available from Abode as binaries), replaced by existing
/usr/lib/flashplugin-installer/libflashplayer.so
with the one from the previous version.And now sounds is working like a charm again.
Also, when the next flash upgrade comes along, the automatic upgrade should as normal.