Bug 255015

Summary: [iOS 14.x & 15.x] WebRTC not autoplay audio when block microphone
Product: WebKit Reporter: PhungDuong <ddp.bkdn>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: thanquan, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description PhungDuong 2023-04-04 19:48:54 PDT
We found issues when making WebRTC calls with the blocked microphone.
Steps below:
1. Block the microphone. (camera optional)
2. Join WebRTC calls
3. Check the output audio

Actual:
14.x: No output audio (frequency: 6/10)
15.x: No output audio (frequency: 10/10)
16.x: Normal output audio.

Please let us know if this bug is known and fixed in iOS 16.x ?
Thanks.
Comment 1 Radar WebKit Bug Importer 2023-04-11 19:49:16 PDT
<rdar://problem/107916381>
Comment 2 youenn fablet 2023-05-02 07:18:43 PDT
This is expected.
Autoplay does not kick in by default if microphone or camera are not in use.
Instead, the page should start playing media based on a user click.
Note that the user click may happen largely before audio is being received, playing media element at this time will remove the autoplay restriction anyway even if there is no audio to be played.
Comment 3 thanquan 2023-12-06 02:55:19 PST
Same issue for Chrome on Ios 17.1.2.

User click BEFORE WebRtc connection does not work, user click after WebRTC connection is ok