Post

Replies

Boosts

Views

Activity

WKWebView getUserMedia microphone gets muted in background
First, thank you for adding getUserMedia to WKWebview. Now, I have a webrtc session with audio and video going both directions, problem is that when the app goes to background I can only hear the incoming audio on the iPhone side, but the mic audio is not being sent from the iPhone to the remote side. Using the new iOS 15 API I can see that wkwebview.microphoneCaptureState becomes muted shortly after applicationDidEnterBackground (using wkwebview.setMicrophoneCaptureState to active doesn't help when in the background either). I see this issue in iOS 15 beta 8 and also in iOS 14.7. If using the native mic capture with AVAudioSession then the mic continues to work in the background, so I background modes are good. Is there some config I can set to continue having the mic working in the background? Thank you
8
0
5.3k
Sep ’21