Bug 212669 - Safari users cannot hear remote audio, even though audio track is present
Summary: Safari users cannot hear remote audio, even though audio track is present
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad iOS 13
: P2 Critical
Assignee: Nobody
URL: https://virus.cafe
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-06-02 16:40 PDT by Feross Aboukhadijeh
Modified: 2020-07-07 10:06 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Feross Aboukhadijeh 2020-06-02 16:40:34 PDT
In Safari iOS, the audio for remote streams doesn't work sometimes. The audio track is being sent in the SDP but there's no audio when I add the stream to a <video> tag. This happens 20% of the time and it's very perplexing.

What's super weird is that if I connect the iPhone to debug the Safari tab, and I select the remote video element, and then I run $0.pause(); $0.play() the audio suddenly starts working. Somehow the audio track is present but the video tag is glitching and not playing it, it seems.

I wait for both 'track' events (one for video, one for audio) then I set `video.srcObject = stream`. Very basic WebRTC usage.

I can reproduce this after about 5 tries on the site I'm building, https://virus.cafe, between iOS on the one side and desktop Safari/Chrome on the other.
Comment 1 Radar WebKit Bug Importer 2020-06-02 18:21:34 PDT
<rdar://problem/63902457>
Comment 2 Feross Aboukhadijeh 2020-06-02 19:09:56 PDT
Possibly related to https://bugs.webkit.org/show_bug.cgi?id=198545
Comment 3 youenn fablet 2020-06-08 05:11:17 PDT
Feross, thanks for the report.
Can you try the latest iOS beta to see if that fixes your issue?
Comment 4 Feross Aboukhadijeh 2020-06-08 19:31:22 PDT
Hi youenn, I will get an extra iOS device to install the iOS beta onto and then report back what I find. Thanks!
Comment 5 Maciej Stachowiak 2020-06-25 23:48:32 PDT
I tried this on the iOS beta but I couldn't get a conversation partner so could not confirm if fixed or not.
Comment 6 Kyle Dunn 2020-07-02 13:57:38 PDT
I tested with iOS 13.6 beta 3 and can confirm the fix. Like Feross I was previously reproducing the bug in 13.5 about 20% of the time.
Comment 7 youenn fablet 2020-07-03 05:44:36 PDT
Closing as per above comments, please reopen if needed.
Comment 8 Feross Aboukhadijeh 2020-07-03 15:19:26 PDT
The issue seems fixed in the iOS 14 beta.
Comment 9 Ian Bonner 2020-07-06 16:47:36 PDT
We have been experiencing a very similar issue and have been monitoring this bug. Is this expected to be closed in the ios 13.6 release or just the ios 14 release? The response from Feross indicates it is resolved in ios 14 but I was hoping for confirmation of a resolution in the ios13.6. Thanks
Comment 10 Kyle Dunn 2020-07-07 10:06:48 PDT
(In reply to Ian Bonner from comment #9)
> We have been experiencing a very similar issue and have been monitoring this
> bug. Is this expected to be closed in the ios 13.6 release or just the ios
> 14 release? The response from Feross indicates it is resolved in ios 14 but
> I was hoping for confirmation of a resolution in the ios13.6. Thanks

It's fixed in the latest 13.6 beta so I think it's safe to assume it will be fixed in the general public release of 13.6 soon.