On Google's Oskar Fischinger's 117th Birthday Doodle I realized that it is when I change the tab , the music stops playing, and when you return to the page again, it continues to play. I created an example using <audio>
. See:
<audio controls>
<source src="http://www.zedge.net/d2w/4/1631039/878827377/view/?mp3"type="audio/mpeg">
Your browser does not support the audio element.
</audio>
How to pause and start audio when tab switch?