From 0c3aa922ca2e651249fbdadc58a725226216df90 Mon Sep 17 00:00:00 2001 From: calledude <22471295+calledude@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:06:39 +0200 Subject: Fix skip audio notification not working on firefox --- manifest/chrome-manifest-extra.json | 2 +- manifest/manifest-v2-extra.json | 2 +- public/icons/beep.oga | Bin 0 -> 4706 bytes public/icons/beep.ogg | Bin 4706 -> 0 bytes src/content.ts | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 public/icons/beep.oga delete mode 100644 public/icons/beep.ogg diff --git a/manifest/chrome-manifest-extra.json b/manifest/chrome-manifest-extra.json index 4fa0fed7..fbfe2242 100644 --- a/manifest/chrome-manifest-extra.json +++ b/manifest/chrome-manifest-extra.json @@ -30,7 +30,7 @@ "icons/close.png", "icons/skipIcon.svg", "icons/refresh.svg", - "icons/beep.ogg", + "icons/beep.oga", "icons/pause.svg", "icons/stop.svg", "icons/skip.svg", diff --git a/manifest/manifest-v2-extra.json b/manifest/manifest-v2-extra.json index 1c33efe7..e9dad9f3 100644 --- a/manifest/manifest-v2-extra.json +++ b/manifest/manifest-v2-extra.json @@ -22,7 +22,7 @@ "icons/close.png", "icons/skipIcon.svg", "icons/refresh.svg", - "icons/beep.ogg", + "icons/beep.oga", "icons/pause.svg", "icons/stop.svg", "icons/skip.svg", diff --git a/public/icons/beep.oga b/public/icons/beep.oga new file mode 100644 index 00000000..37f92fe4 Binary files /dev/null and b/public/icons/beep.oga differ diff --git a/public/icons/beep.ogg b/public/icons/beep.ogg deleted file mode 100644 index 37f92fe4..00000000 Binary files a/public/icons/beep.ogg and /dev/null differ diff --git a/src/content.ts b/src/content.ts index 3596a70d..fbb73bef 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1721,7 +1721,7 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u if (autoSkip && Config.config.audioNotificationOnSkip && !isSubmittingSegment && !getVideo()?.muted) { - const beep = new Audio(chrome.runtime.getURL("icons/beep.ogg")); + const beep = new Audio(chrome.runtime.getURL("icons/beep.oga")); beep.volume = getVideo().volume * 0.1; const oldMetadata = navigator.mediaSession.metadata beep.play(); -- cgit v1.2.3