Pause/Mute HTML5 Audio/Video On Leaving Tab

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

Versione datata 01/03/2018. Vedi la nuova versione l'ultima versione.

Autore
jcunews
Valutazione
0 0 0
Versione
1.0.2
Creato il
05/06/2017
Aggiornato il
01/03/2018
Dimensione
1,72 KB
Licenza
AGPL v3
Applica a
Tutti i siti

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.