From 81d0943fdcfdd93eea1c0e8364b8982a544a8c24 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Tue, 28 Jul 2026 03:29:48 +0200 Subject: [PATCH] fix(watch): drop the Web Audio reroute, keep Media Session for iOS background audio (0.57.2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported: on iPad Brave a shared video's audio still stopped when backgrounded, while youtube.com keeps playing. Root cause: routing the element's audio through createMediaElementSource pulls it out of the normal media pipeline the browser's background-playback feature (and iOS) hooks into, and iOS then suspends the AudioContext on background — the opposite of the goal. YouTube uses a plain media element + Media Session and lets the browser background it. So drop the Web Audio graph entirely and keep only the Media Session metadata + play/pause handlers, leaving native background handling in charge. Frontend-only. --- VERSION | 2 +- frontend/src/components/WatchPage.tsx | 67 ++++----------------------- frontend/src/lib/releaseNotes.ts | 7 +++ 3 files changed, 18 insertions(+), 58 deletions(-) diff --git a/VERSION b/VERSION index 68e76af..ad0b33d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.57.1 \ No newline at end of file +0.57.2 \ No newline at end of file diff --git a/frontend/src/components/WatchPage.tsx b/frontend/src/components/WatchPage.tsx index c9e4688..60efb97 100644 --- a/frontend/src/components/WatchPage.tsx +++ b/frontend/src/components/WatchPage.tsx @@ -5,57 +5,19 @@ import { Download, Link2, Lock, PlayCircle } from "lucide-react"; // tree (no auth, no providers) — like the /privacy and /terms pages. Uses plain fetch and a tiny // self-contained i18n dict (the public viewer has no app language preference). -// Keep audio playing when the page is backgrounded (iOS Safari/Brave otherwise suspend a