Pause/Mute HTML5 Audio/Video On Leaving Tab

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

Автор
jcunews
Инсталации дневно
0
Инсталации общо
230
Рейтинг
8 0 0
Версия
1.0.5
Създаден
05.06.2017
Обновен
16.03.2021
Лиценз
AGPL v3
Работи на
Всички сайтове

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.