Pause/Mute HTML5 Audio/Video On Leaving Tab

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

Maker
jcunews
Dagelijks aantal installaties
1
Totaal aantal installaties
235
Beoordelingen
8 0 0
Versie
1.0.5
Gemaakt op
05-06-2017
Bijgewerkt op
16-03-2021
Licentie
AGPL v3
Wordt toegepast op
Alle websites

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.