Bug 246340

Summary: [iPhone 14] Outgoing video does not recover for WebRTC call if the User goes to another app, plays a video and navigates back to browser
Product: WebKit Reporter: Madara Freimane <madara.freimane>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Major CC: ddp.bkdn, rychouwei, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   

Description Madara Freimane 2022-10-11 07:55:35 PDT
Summary:
Incoming and outgoing audio disappears for WebRTC call if the User goes to another app, plays a video and navigates back to browser


Tested devices and browsers:
Bug is reproducible on:
- iPhone 14 (16.02, build: 20A380) with Safari
- iPhone 14 (16.0.3, build: 20A392) with Safari

Bug is not reproducible on:
- iPhone 12 Pro Max (16.0, build: 20A362) with Safari
- iPhone 11 (16.02, build: 20A380) with Safari
- iPhone 11 (16.03, build: 20A392) with Safari

Use case:
Preconditions:
Users are in active WebRTC video call

Steps:
1. User goes to YouTube and plays video OR goes to another app, for example, Facebook and plays a video
2. User navigates back to WebRTC call (opens Safari)

Actual result:
Incoming and outgoing audio disappears and User cannot unmute WebRTC call (unmute button not responding),
(Sometimes audio comes back after ~30sec-1min).

Expected result:
WebRTC call goes to unmuted state, when User opens Safari browser.

Reproducibility:
100%

Additional information:
-A sysdiagnostics file added:
https://drive.google.com/file/d/1_cixCCg_RUwPsTmCV7kD8YYGLjeKVaXl/view?usp=sharing
Comment 1 Radar WebKit Bug Importer 2022-10-16 18:52:56 PDT
<rdar://problem/101230059>
Comment 2 Madara Freimane 2022-10-26 04:23:08 PDT
Bug is still reproducible
Tested device:
iPhone 14 | iOS 16.1, build: 20B82
Comment 3 Madara Freimane 2022-11-11 08:18:29 PST
Bug is still reproducible on iPhone 14 (iOS 16.1.1,  build 20B101) with Safari
Comment 4 Madara Freimane 2022-11-16 09:44:00 PST
Hi!

Using the same use case, behaviour is different with last available iOS 16.2 Beta 3 version, now incoming and outgoing audio recovers, but only outgoing video does not recover when User navigates back to WebRTC call, for example, from Youtube app.

Because of that I changed title of the ticket and added a new sysdiagnostics file:
https://drive.google.com/file/d/16kOqvB50kEqwYaClnXCIfsKDIofuqrW9/view?usp=share_link

Same use case:
Preconditions:
Users are in active WebRTC video call

Steps:
1. User goes to YouTube and plays video OR goes to another app, for example, Facebook and plays a video
2. User navigates back to WebRTC call (opens Safari)
=> Outgoing video does not recover for WebRTC call if the User goes to another app, plays a video and navigates back to browser. Camera is turned OFF and other User still can see frozen video/black video.

Tested devices:
Bug is reproducible on:
iPhone 14 | iOS 16.2 Beta 3, build: 20C5049e

Bug is not reproducible on:
iPhone 11 Pro Max | iOS 16.2 Beta 3, build: 20C5049e