I would advise removing the Ubuntu Tweak PPA from your software sources by opening the Software Centre then clicking Edit->Software Sources...
. Click the 'Other Software' tab then untick the Ubuntu Tweak PPA.
Close the software sources window and it should refresh your software index.
Uninstall any flash plugins you have installed then install ubuntu-restricted-extras. This should get flash working again.
In the future do not use PPAs unless you are certain of what you are doing. Note that Ubuntu Tweak is for users who know what they are doing and can mess up your system if you use it without precautions.
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:
- Then close it, and kill PulseAudio in a terminal as shown, wait, and check that it is now listening on port 4713:
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
Delete the ~/.macromedia folder and restart the browser. If you play flash games online, most likely you will lose your scores. So back it up if you need them.