diff --git a/frontend/lib/audio-controller.ts b/frontend/lib/audio-controller.ts index aac869d..5e72062 100644 --- a/frontend/lib/audio-controller.ts +++ b/frontend/lib/audio-controller.ts @@ -55,6 +55,16 @@ export class AudioController { // Route-change observability: track time of last play to compute ms-since-play on pause. private lastPlayAt = 0; + // iOS standalone PWA audio session bridge. iOS WKWebView suspends the + // HTMLAudioElement's audio session when backgrounded; MediaSession reports + // "playing" but no sound. Routing the element through an AudioContext + // keeps the iOS audio session active across backgrounding because the + // AudioContext claims it more durably than a bare