Stop auto-playing when switching tabs.