Pause/Mute HTML5 Audio/Video On Leaving Tab

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

Penulis
jcunews
Pemasangan harian
0
Total pemasangan
239
Nilai
8 0 0
Versi
1.0.5
Dibuat
05 Juni 2017
Diperbarui
16 Maret 2021
Lisensi
AGPL v3
Berlaku untuk
Semua situs

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.