Bug 262730

Summary: (iOS 16, 17): The call does not recover automatically if iOS User tries to use Siri while Bluetooth headphones connected with an iPhone
Product: WebKit Reporter: Madara Freimane <madara.freimane>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   

Description Madara Freimane 2023-10-05 13:40:18 PDT
Summary:
The call does not recover automatically if iOS User tries to use Siri while Bluetooth headphones connected with an iPhone

Tested devices:
The bug is reproducible on:
- iPhone 11 Pro Max (iOS 17.1 Beta 2, build: 21B5056e) and Safari
- iPhone 12 Mini (iOS 17.0.3) and Safari

Use case:
Precondition:
Browser is opened on iOS 17 device
The User is in an active WebRTC call with incoming/outgoing video ON
Bluetooth headphones connected with an iPhone

Steps:
1. iOS User tries to enable Siri while Bluetooth headphones connected
2. iOS User observes the incoming/outgoing audio and video if the call is not recovered automatically

Actual result:
The call does not recover automatically if iOS User tries to use Siri while Bluetooth headphones connected with an iPhone:
- "Microphone" button displayed as disabled

Expected result:
The call recovers automatically if iOS User tries to use Siri while Bluetooth headphones connected with an iPhone:
- Incoming/outgoing audio available
- Incoming/outgoing video available

Reproducibility:
70%

Additional information:
The sysdiagnostics file added (recorded using https://webrtc.github.io/samples/src/content/peerconnection/upgrade/, AirPods used as Bluetooth headphones):
 https://drive.google.com/file/d/1-vom4oX1XNOr40zrUaIPtUSLp82qsyCt/view?usp=sharing
Comment 1 Radar WebKit Bug Importer 2023-10-09 11:13:34 PDT
<rdar://problem/116689878>
Comment 2 Madara Freimane 2023-10-13 02:20:10 PDT
Bug also is reproducible with iOS 16, when we want to use Siri while Bluetooth device connected. The difference between iOS 16 and iOS 17 - on iOS 17 often it is difficult to enable Siri, when we try to enable it, and Siri does not answer questions, but we do not observe any problems with iOS 16 - the Siri can be used when we try to enable it.
At the end - if we enable Siri on iOS 16 and iOS 17 while Bluetooth headphones connected - we see that call does not recover automatically after the use of Siri - incoming and outgoing audio, and outgoing video is lost.

- If iOS User re-enables "Camera" button, everything recovers - incoming and outgoing audio, and outgoing video comes back.
- If iOS User re-enables "Microphone", incoming and outgoing audio comes back, but not outgoing video.

Tested devices and browsers:
- iPhone 8 Plus (iOS 16.5.1) with Safari
- iPhone 13 (iOS 16.7) with Safari
- iPhone 11 Pro Max (iOS 17.1 Beta 2, build: 21B5056e) and Safari
- iPhone 12 Mini (iOS 17.0.3) and Safari

Reproduced a bug with:
https://webrtc.github.io/samples/src/content/peerconnection/upgrade/