Pause/Mute HTML5 Audio/Video On Leaving Tab

Pause or mute HTML5 audio/video on leaving a tab and restore them back on returning.

Ekde 2018/03/01. Vidu La ĝisdata versio.

Aŭtoro
jcunews
Ratings
0 0 0
Versio
1.0.2
Kreita
2017/06/05
Ĝisdatigita
2018/03/01
Size
1,72 kb
Licenco
AGPL v3
Aplikiĝas al
Ĉiuj retejoj

By default, this script will pause instead of mute. To make it to mute instead of pause, change the muteInsteadOfPause variable in the script from false to true.

This script will only pause/mute if the current tab has been fully loaded before switching to other tab. IOTW, it won't pause/mute if the current tab is still loading when switching to other tab.