Repository navigation
fix(audio): resolve a WASM-processed track to its real input device - #25790
prlanzarin merged 1 commit into
Conversation
The registry mapping a WASM-processed track back to the device it was captured from is keyed on the synthetic WebAudio-* device ID Chromium invents for MediaStreamAudioDestinationNode tracks. Firefox reports an empty getSettings() for those, so nothing is registered and the processed stream resolves to no device at all. Unmuting then matches none of the local publications: inside the unpublish-after-mute window the track is still published, so the republish fallback is skipped too and the unmute is a no-op - and it cancels the pending unpublish, so the microphone stays muted until audio is rejoined. Key the registry on the processed track IDs as well, which every browser exposes, and resolve a track through either key. The synthetic ID stays registered where the browser provides one, so nothing changes for Chromium.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe WASM audio setup now passes the processed stream to Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The updated mapping preserves device resolution for processed audio tracks, including Firefox tracks without settings-derived device IDs. No merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Automated tests have passed! |
What does this PR do?
fix(audio): resolve a WASM-processed track to its real input device
captured from is keyed on the synthetic WebAudio-* device ID Chromium
invents for MediaStreamAudioDestinationNode tracks. Firefox reports an
empty getSettings() for those, so nothing is registered and the processed
stream resolves to no device at all. Unmuting then matches none of the
local publications: inside the unpublish-after-mute window the track is
still published, so the republish fallback is skipped too and the unmute
is a no-op - and it cancels the pending unpublish, so the microphone
stays muted until audio is rejoined.
exposes, and resolve a track through either key. The synthetic ID stays
registered where the browser provides one, so nothing changes for
Chromium.
Closes Issue(s)
Closes #25769
How to test