I had the same problems and they were caused by my ATI HDMI audio which was set as my default sound card. For a long time I used a modification in /etc/asound.conf:
Note: my sound card is 2, yours could be different.
But this no longer worked with YouTube and HTML5. So I removed asound.conf modifications and blacklisted snd-hda-intel module to make YouTube fully functional.