Pause your background video when you play another video in another tab.
You can also try these related scripts: