breezy-horse-36075
05/02/2026, 2:28 PMtall-airline-16756
05/02/2026, 2:28 PMtall-airline-16756
05/02/2026, 2:29 PMbreezy-horse-36075
05/02/2026, 2:29 PMtall-airline-16756
05/02/2026, 2:29 PMAVAudioSession or Android AudioManager)?
• Does the embedded YouTube player use a WebView or platform browser view? Is it in the same Activity/ViewController as your LiveKit view?
• Can you share any logs when the mic is opened (audio focus events, errors, or LiveKit debug logs)?
• Quick confirmation: does pausing the YouTube player before opening the mic prevent the issue?
Once you share those details I’ll suggest the most likely fixes (audio session configuration changes, setting proper audio routes/focus, or isolating the WebView).
, with interactive elementsbreezy-horse-36075
05/02/2026, 2:30 PMtall-airline-16756
05/02/2026, 2:30 PMwebview_flutter, youtube_player_flutter, or an iframe in a WebView).
• Minimal code snippets:
◦ How you initialize/enable the LiveKit mic (the call/sequence that starts audio capture).
◦ How you embed the YouTube player/WebView (widget or Activity/ViewController setup).
• Any audio session / audio focus code you set (iOS AVAudioSession config, Android AudioManager or AudioFocusRequest).
• What exactly happens: does playback pause immediately when mic opens, and does it ever resume automatically or only after app restart?
• Relevant logs when you open/close the mic (LiveKit debug logs, platform logs, WebView console logs, or any audio focus messages).
• Quick test results: Does pausing the YouTube player before enabling mic avoid the problem? Does muting LiveKit (send-only) change behavior?
With those details I can suggest targeted fixes (audio session modes, audio focus handling, or workarounds such as reloading/resuming the WebView playback after mic is closed). If you prefer, paste the minimal code and logs and I’ll point to the exact changes to try.
, with interactive elements