Bug 230903

Summary: REGRESSION (Safari 15 - iOS15): [WebRTC] Increased audio latency while playing webrtc audio stream over audio element
Product: WebKit Reporter: asanand
Component: Web AudioAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Blocker CC: cdumez, chrisguttandin, cxdevteam, eric.carlson, ews-watchlist, firstcontact, glenn, jer.noble, philipj, sergio, smoley, webkit-bug-importer, youennf
Priority: P1 Keywords: InRadar
Version: Other   
Hardware: iPhone / iPad   
OS: Other   
Attachments:
Description Flags
Patch none

Description asanand 2021-09-28 11:26:36 PDT
We are observing noticeable increase in audio latency in Safari browser after IOS 15 update.

Our Client side implementation plays webrtc audio stream received from server on HTML audio element.
Please note audio latency is measured as time difference when audio action is triggered on client and when audio is heard on client.

We have verified this behavior on safari browser on following IOS
iPhone 12 Pro running iOS 15.0 - repro
M1 iPad Pro iOS 15.0           - repro
iPhone SE running iOS 15.0     - repro
iPhone XS Max running iOS 14.5 - no repro
Comment 1 Radar WebKit Bug Importer 2021-09-29 16:01:47 PDT
<rdar://problem/83692944>
Comment 2 Smoley 2021-09-29 17:28:29 PDT
Thanks for filing, is there a live test case that illustrates the issue?
Comment 3 Jay Charles 2021-09-30 08:24:18 PDT
Webrtc audio and video are also out of sync in 15 when both are played through an HTMLVideoElement. Playing the audio through an AudioContext restores sync, but is presenting audio rendering problems (stuttering in audiocontext) in Chrome/iOs as of 15.1 beta2 (was fine as of 15.1 beta 1). Feel free to contact me offlist for a live test case.
Comment 4 youenn fablet 2021-10-20 06:23:54 PDT
I'll be happy to get access to a live test, can a link be sent to youenn@apple.com?
Comment 5 youenn fablet 2021-10-22 03:20:20 PDT
Created attachment 442142 [details]
Patch
Comment 6 EWS 2021-10-22 09:31:41 PDT
Committed r284689 (243409@main): <https://commits.webkit.org/243409@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 442142 [details].
Comment 7 cxdevteam@outlook.com 2021-11-07 20:57:48 PST
which version will include this fix?
Comment 8 asanand 2021-11-22 23:33:44 PST
Which version will have this fix ?
Comment 9 asanand 2022-02-08 06:11:02 PST
W are still facing this issue on 15.4 beta. Is the fix included in this specific version?