Bug 245833

Summary: [iPhone 14] Outgoing audio disappears for WebRTC call when User rejoins the call with video option
Product: WebKit Reporter: Madara Freimane <madara.freimane>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical CC: karlcow, rychouwei, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
rendering in safari, firefox, chrome none

Description Madara Freimane 2022-09-29 08:52:27 PDT
Summary:
Outgoing audio disappears for WebRTC call when User rejoins the call with video option

Tested devices:
Bug is reproducible with Safari on:
* iPhone 14 | iOS 16.0, build: 20A357
* iPhone 14 | iOS 16.0.2, build: 20A380

Bug is not reproducible with Safari on:
* iPhone 13 | iOS 16.0.2, build: 20A380
* iPhone 11 | iOS 16.0.2, build: 20A380
* iPhone XS | iOS 15.4.1 

Scenario:
Precondition:
Safari browser opened
User is in an active WebRTC call 

Steps:
1. iPhone 14 User leaves the call
2. iPhone 14 User rejoins the same call using video option

Actual result:
Outgoing audio disappears when User rejoins the call with video option

Expected result:
Outgoing audio does not disappear when User rejoins the call with video option

Reproducibility:
80%

Additional information:
- Sysdiagnostics file:
https://drive.google.com/file/d/1Tw3YPPOzFkV5vmw27irIGSJpLdpl6SZb/view?usp=sharing
Comment 1 Radar WebKit Bug Importer 2022-10-04 08:07:45 PDT
<rdar://problem/100763073>
Comment 2 rychouwei 2022-10-13 02:12:25 PDT
We have same issue!

this is a demo to reproduce:

https://sdk-web-1252463788.cos.ap-hongkong.myqcloud.com/trtc/webrtc/test/4.14.4/mute-audio/index.html?roomId=88005

only reproduce on iPhone 14 series.

Steps to reproduce:

1. open demo on iPhone 14 Safari.
2. open anthor demo on PC Chrome.
3. click "JOIN" to join room on both tabs. now both tabs can hear each other.
4. click "LEAVE" on iPhone 14 Safari.
5. click "JOIN" on iPhone 14 Safari.

Now, tab on PC Chrome cannot hear iPhone 14 Safari.
Comment 3 Karl Dubost 2022-10-14 06:13:36 PDT
Created attachment 462984 [details]
rendering in safari, firefox, chrome

Tested on macOS 13.0
---
A Safari                     16.1          18614.2.6.1.1
B Safari Technology Preview  16.4          18615.1.7.1
C Firefox Nightly            107.0a1       10722.10.14
D Google Chrome Canary       108.0.5355.0  5355.0

Screenshot position.
B A
C D
Comment 4 Karl Dubost 2022-10-14 06:14:28 PDT
Comment on attachment 462984 [details]
rendering in safari, firefox, chrome

Wrong bug sorry
Comment 5 Madara Freimane 2022-10-26 04:22:07 PDT
Bug is still reproducible
Tested device:
iPhone 14 | iOS 16.1, build: 20B82
Comment 6 youenn fablet 2022-11-03 03:46:00 PDT
I looked at the sysdiagnose, and I do not see any active WebRTC call (no libwebrtc logs).
I can see some capture happening though.
I can also see the local video element preview pausing and playing very quickly, I am not sure what is happening there.
Comment 7 Madara Freimane 2022-11-04 08:59:40 PDT
Hi, Youenn!



When I rejoin WebRTC call using "video" option, I see that microphone is not functioning anymore, the “Microphone” button becomes muted and I am not able unmute the call, and in the same time outgoing / incoming video freezes and is not loaded.


I added a new sysdiagnostics file
https://drive.google.com/file/d/1FPqdo4Sem075vdNDABiED77Jc-ME0FyD/view?usp=share_link

Reproduced issue at 17:48, 04.11.2022. (EET time zone)



Device:

iPhone 14 (iOS 16.1, build: 20B82)
Comment 8 youenn fablet 2022-11-07 05:49:59 PST
I see the same issue as https://bugs.webkit.org/show_bug.cgi?id=245831.
It seems there is a freeze when starting an AudioContext, which in turns has impact on audio capture.
Marking as duplicate of 245831.

*** This bug has been marked as a duplicate of bug 245831 ***