Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari users cannot hear remote audio, even though audio track is present #672

Closed
feross opened this issue Jun 2, 2020 · 4 comments
Closed

Comments

@feross
Copy link
Owner

feross commented Jun 2, 2020

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

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 between iOS on the one side and desktop Safari/Chrome on the other.

This may be a bug in Safari's WebRTC or audio stack so I reported it here: https://bugs.webkit.org/show_bug.cgi?id=212669 just in case.

Anyone else seen this or have ideas?

@feross
Copy link
Owner Author

feross commented Jun 3, 2020

This is definitely a Safari bug: https://bugs.webkit.org/show_bug.cgi?id=198545

Closing since there's nothing simple-peer can do about it. Safari's WebRTC implementation needs a lot of work.

@feross feross closed this as completed Jun 3, 2020
@feross
Copy link
Owner Author

feross commented Jun 3, 2020

Other related issues:

twilio/twilio-video.js#922
twilio/twilio-video.js#941

@anna-vasilko
Copy link

anna-vasilko commented Jun 8, 2020

Hi @feross! Safari team from Apple communicated that the issue is fixed in the latest iOS beta 13.5.5, which is available for testing with the iOS dev account.
Our internal testing confirmed the fix. Any chance you could verify on your end?

@Dalton-Klein
Copy link

I am still not able to get iphones to play any sound in voice chats. PC users can hear them, the peers are established fine, but iphone users cannot hear anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants