From 0bcdb29bced72c619b723b7003ff361013e3e90e Mon Sep 17 00:00:00 2001 From: Ryan Doupe Date: Sat, 24 Oct 2026 23:13:53 -0400 Subject: [PATCH 1/2] test: WebAudio after the audio service dies Move plugins/obs-browser to the test from obs-rust/obs-browser: a browser source plays a local WebAudio tone with "Control audio via OBS", the run's Chromium audio service process is SIGKILLed, and audio packets must flow again in the fifth second after the kill. Scenarios: one kill, three kills on a page that replaces and freezes globals, a context the page suspended itself, and two sources. On master all four fail with 0 packets after the kill. Refs #2328 --- plugins/obs-browser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-browser b/plugins/obs-browser index 7bab463c9b..9e1be0dcd8 160000 --- a/plugins/obs-browser +++ b/plugins/obs-browser @@ -1 +1 @@ -Subproject commit 7bab463c9b657885ed8d98c66e99a87ee2e0d779 +Subproject commit 9e1be0dcd88ecd976321506f1ce34d60f511adc3 From a098e6687ef8babe73e4460465c95fb7e217732c Mon Sep 17 00:00:00 2001 From: Ryan Doupe Date: Sat, 24 Oct 2026 23:13:53 -0400 Subject: [PATCH 2/2] obs-browser: Resume WebAudio after audio crash Move plugins/obs-browser to the obs-rust/obs-browser fix: every frame gets a script, before the page's own, that resumes an AudioContext suspended by an audio service error unless the page suspended it itself. Pages still see the native AudioContext; OfflineAudioContext is untouched; pages that replace or freeze globals do not break it. tests/audio_recovery.py in obs-browser: 4 of 4 scenarios pass (one kill, three kills on a hostile page, a page-suspended context that stays suspended, two sources); audio is back 3.1 to 3.2 s after each kill, against 0 packets on master. Fixes #2328 --- docs/features.md | 7 +++++++ plugins/obs-browser | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/features.md b/docs/features.md index 14d9c75237..aa258f09ea 100644 --- a/docs/features.md +++ b/docs/features.md @@ -950,6 +950,13 @@ area. [#2271](https://github.com/obs-rust/obs-studio/pull/2271), upstream [obsproject/obs-studio#4828](https://github.com/obsproject/obs-studio/issues/4828), [obsproject/obs-studio#3211](https://github.com/obsproject/obs-studio/issues/3211). +- A browser source playing sound through WebAudio (alert boxes and the like) + no longer goes silent for good when Chromium's audio service process dies; + its sound comes back about 3 s later, without a page refresh or toggling + "Control audio via OBS". A page that paused its own audio stays paused. + *All*, pending merge. Issue + [#2328](https://github.com/obs-rust/obs-studio/issues/2328), upstream + [obsproject/obs-studio#10586](https://github.com/obsproject/obs-studio/issues/10586). ### Encoding, streaming and recording diff --git a/plugins/obs-browser b/plugins/obs-browser index 9e1be0dcd8..654d2b9b6f 160000 --- a/plugins/obs-browser +++ b/plugins/obs-browser @@ -1 +1 @@ -Subproject commit 9e1be0dcd88ecd976321506f1ce34d60f511adc3 +Subproject commit 654d2b9b6f6a193407e33970004cbdc39bf8c6a2