Pause/Mute HTML5 Audio/Video On Leaving Tab

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

Tính đến 27-03-2020. Xem phiên bản mới nhất.

Tác giả
jcunews
Đánh giá
0 0 0
Phiên bản
1.0.3
Đã tạo
05-06-2017
Đã cập nhật
27-03-2020
Kích thước
2 KB
Giấy phép
AGPL v3
Áp dụng cho
Tất cả trang web

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.