Issue with output sound in iPhone's after iOS 15 update

Hi Team,

First of all, I would like to thank you for developing an amazing WebRTC.

I am facing a new issue after updating my iPhone from iOS 14 to iOS 15.
When I join a video session the publisher’s sound comes out from earpiece (like during a phone call). How can I set output source to a speaker?

I tried enabling speaker layout from media player icons, but nothing seems to be working.
This issue occurs on all Apple iPhones with iOS 15 (Latest version)

I am using openvidu-library-angular 2.20.0

Can somebody please help me with this issue?
Thanks for your attention. I’m looking forward to your reply.

1 Like

I have same issues. It makes me crazy now.

If you have solution, please share to me.

Thank you.

Hello,

Please, provide to us as much information as possible about your client device.
Device model, platform used (is it Safari? Which exact version?). The exact iOS 15 number.

Also please describe in detail the scenario in which you see the wrong behavior. Is it a simple 1:1 audio+video OpenVidu Session? Does it happen in any of the official OpenVidu demos?: https://demos.openvidu.io/

Yes, It happen with OpenVidu demos.
It is simple 1:1.
iphone 6s - iOS 15.0.1
iPhone XS - iOS 15.0.2
iPhone 12 - iOS 15.0.2

I think it’s happen with all iOS 15.x.x in any iPhone.
Thanks,

1 Like

I’ve tested the same on iPhone 7 Plus- iOS 15.0 and the speaker and earpiece are working emitting sound at the same time.

This test was done in OpenviduCall

I’ve just test in https://demos.openvidu.io/ OpenviduCall with iPhone XS - iOS 15.0.2 Safari. Audio level is low.
Audio level will be normal if I click stop/start using camera button in address bar.

Yes. But volume level is very low. We can’t hear while using camera.

Hi @CSantosM , @pabloFuente,

Please check the issue and give suggestion.

We can’t reproduce you plroblem @Kienvq. In my test, the mute/unmute camera is not affecting to the audio volume level.

What is happening if you click on the up level device button? The audio level doesn’t increase?

Hi @CSantosM , @pabloFuente

I am too facing same issues.

I tested on the below devices.
iPhone XR (iOS 15.0.2) safari browser.
iPhone SE (iOS 15.0.1) safari browser.
The test was done in OpenviduCall

This problem does not exist in iPad devices. But exist in all iPhones with the latest iOS (15.0.X) version.

Please try checking with different iphone devices.
Thank you.

1 Like

Audio level is max but volume’s low. mute/unmute is working fine but not make the audio be louder.
To be louder, I have to click on camera icon in safari address bar → stop using camera.
You can find in this video test: https://photos.app.goo.gl/qhY9BdxzRCGvTtDX9

OK, I got it.
Could you please check if you have the same behaviour with Chrome Browser? Maybe it is only happening with Safari and Apple has a bug with the new release

Hi. The same in Chrome.

Thanks,

1 Like

Ok, I have been performing further tests and I can confirm the problem. Audio is in fact coming out OK through both outputs: the earpiece and the main speaker. But the total audio level is reduced, I’d say about 1/2 to 2/3. And clicking on the “Stop camera” option on the Safari’s navigation bar does in fact increase the audio output level.

And the unfortunate news is that this is an Apple bug. It does not affect OpenVidu in particular, it is problem with iOS WebkitView. Here at the Apple’s developer forum there are some entries talking about it: iOS 15 Safari WebRTC Issue | Apple Developer Forums
Other WebRTC services are also reporting the problem. You can even see an engineer from Twilio complaining about it:

The actual bug is being tracked by Apple here: 230902 – REGRESSION(Safari 15 - iOS15): [WebRTC] MediaStreamTack audio volume too low. Other duplicated issues have appeared lately: 231421 – Audio output is directed to earpiece while audio user media being fetched.
I think the bug is currently assigned to an Apple engineer, and as it has some intense activity, with some luck it will be fixed soon in a new patch release for iOS. I have added a new entry to the bug tracker in name of OpenVidu team, to add some more pressure and follow its development (230902 – REGRESSION(Safari 15 - iOS15): [WebRTC] MediaStreamTack audio volume too low).

PD: I see someone who apparently succeeded fixing the issue using AudioContext (230902 – REGRESSION(Safari 15 - iOS15): [WebRTC] MediaStreamTack audio volume too low) Maybe that is worth a try in your app?

Best regards.

1 Like

Thank you for your information.

I will try your suggestion.