Bug 241480

Summary: [iOS] WKWebView WebRTC session loses microphone input when the app goes into the background
Product: WebKit Reporter: Evgeny <ep>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Major CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: iPhone / iPad   
OS: iOS 15   
See Also: https://bugs.webkit.org/show_bug.cgi?id=226620
https://bugs.webkit.org/show_bug.cgi?id=233419

Evgeny
Reported 2022-06-09 12:25:58 PDT
iOS WKWebView WebRTC session loses microphone input when the app goes into the background, irrespective of the app entitlements. The sound from the other connection peer remains active. Interestingly, while the app is moved to recent apps view (I believe, the app is in the inactive phase), the microphone input is still active, it only disappears when the app goes into the the background phase. When the app is returned to foreground (active phase), the microphone input resumes again. This issue can be experimented with in our app: https://apps.apple.com/us/app/simplex-chat/id1605771084 The source code for the page in WKWebView: https://github.com/simplex-chat/simplex-chat/blob/stable/packages/simplex-chat-webrtc/src/call.ts The source code for iOS: https://github.com/simplex-chat/simplex-chat/blob/stable/apps/ios/Shared/Views/Call/WebRTCView.swift
Attachments
Radar WebKit Bug Importer
Comment 1 2022-06-16 12:26:12 PDT
Note You need to log in before you can comment on or make changes to this bug.