From eab0cf9966aeb5cb5d9772be93cb2fb7398c0e05 Mon Sep 17 00:00:00 2001 From: sadan4 <117494111+sadan4@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:26:13 -0400 Subject: [PATCH] VolumeBooster: fix stream on web based clients (#2916) Co-authored-by: v --- src/plugins/volumeBooster/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/volumeBooster/index.ts b/src/plugins/volumeBooster/index.ts index 370f4e96..db024266 100644 --- a/src/plugins/volumeBooster/index.ts +++ b/src/plugins/volumeBooster/index.ts @@ -77,6 +77,11 @@ export default definePlugin({ match: /Math\.max.{0,30}\)\)/, replace: "arguments[0]" }, + // Fix streams not playing audio until you update them + { + match: /\}return"video"/, + replace: "this.updateAudioElement();$&" + }, // Patch the volume { match: /\.volume=this\._volume\/100;/,