aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-07-17 13:17:50 -0400
committerAjay <[email protected]>2024-07-17 13:17:50 -0400
commit3738b180ddaa75d23f027272dd072dda4bc8e105 (patch)
tree5525a66bbe7b96b81aa53fa8bc566171956c5c70 /src
parent3ec1e85712ab8f7e2b4b2d34be6ecb266be3a33e (diff)
downloadSponsorBlock-3738b180ddaa75d23f027272dd072dda4bc8e105.tar.gz
SponsorBlock-3738b180ddaa75d23f027272dd072dda4bc8e105.zip
Don't play notification if video is muted
Fixes #1888
Diffstat (limited to 'src')
-rw-r--r--src/content.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index cc0419e6..262b51c9 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -1721,7 +1721,8 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u
}
}
- if (autoSkip && Config.config.audioNotificationOnSkip && !isSubmittingSegment) {
+ if (autoSkip && Config.config.audioNotificationOnSkip
+ && !isSubmittingSegment && !getVideo()?.muted) {
const beep = new Audio(chrome.runtime.getURL("icons/beep.ogg"));
beep.volume = getVideo().volume * 0.1;
const oldMetadata = navigator.mediaSession.metadata