-
Notifications
You must be signed in to change notification settings - Fork 216
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
Known audio issues in iOS Safari browser #941
Comments
+1. We are eagerly awaiting a fix for this from Twilio or Safari. We are able to reproduce #1 remote audio not playing on iOS Safari iPhone setups a lot, like 50% of the time. This is after doing the suggested work arounds of pause/play and avoiding rerendering of tag. |
We are in touch with Safari WebKit engineers and will keep you posted on any future updates from them regarding these issues. Thanks, Manjesh Malavalli |
@manjeshbhargav |
thanks @manjeshbhargav - ya fyi We escalated with Apple and put in developer ticket with them, 734340602, if you need to reference. We had both the "option #2" pause/play and the "avoid rerender by adding directly to dom" audio track attachment workarounds in and were still able to reproduce the issue about 30-50% fo the time. We actually toook out the pause/play and just left the attachment change and are seeing better results, seems like more like 1 out of 10, but still early in the testing. |
In our best practices guide, we recommend that you provide an audio level indicator for your local and remote audio tracks, so that the application can recommend users to reload the app or restart their browsers. Please take a look at the recommendations and apply them where appropriate. Thanks, Manjesh Malavalli |
thx @manjeshbhargav we are planning to do that. We did notice the issue happens more on older iPhones 6/7 and less on X. Also our QA eng found she could reproduce a LOT on normal iPhone settings with Siri enabled, but when disabling Siri could not reproduce at all. Perhaps something to rely to apple. |
@bjm88 Thank you so much for sharing your observations, I relayed it to the Safari team at Apple |
I have the same issue where the entire calls works apart from audio being sent from the iOS device to the participant (Chrome usually but anything really.) I was able to create this issue on my iPhone 11 Pro Max doing the following:
I can fix this by exiting safari and opening again. I feel like this happens when Safari is open the entire time. I had it happen when safari was in the background for at least 5 minutes. This could be depending on what "type" of person you are:
I am on iOS 13. Let me know if anyone finds issue running into it this way as well. I have temporarily fixed this by adding tests mentioned by @anna-vasilko before video and audio is enabled and gives instructions as to how to fix it. Let me know if this was helpful for anyone. |
I can produce audio issues in almost 99% of time in 1v1 direct rooms between ios devices, here is how:
Basically this approach backfired. It looks like using location.reload() will almost guarantee that there is no audio anymore. Perhaps this method can be used by other people to get into the state of "there is no audio" very easily. For now I have removed the window.location.reload() and added a button of "I can't hear the other person" which will show popup which tells both people to refresh their browser. I've also use only one single audio element throughout the app which is decoupled from react:
|
im trying to use the proposed workaround in #922 |
Workaround doesn't works at all. iPad Pro and iPhone devices - none produced any audio at all. |
This bug is majorly coming on devices with ios version < 13.0. |
Same thing with iOS/Safari up 13.4 - no remote audio available when participiant is on iPhone |
Have you guys tried seeing if my comment is what is causing this issue? Since this bug is in the hands of Apple who have identified it as part of their issue, perhaps the best option is to create a little dialog box for users to restart safari and try to run the application again. I know it's not the best answer but I found that solution to work best and have reduced no audio signal connections by almost 95%. Until Apple fixes this issue on the next iOS update, it might be the best solution for now. Sadly, since the fix to safari will require a software update, the problem might still persist throughout iOS 13.x |
@elebumm thanks for your response. Understand that bug could be coming from iOS Safari team for iOS devices. May I know if it is the same issue for Safari on Mac devices? Or i should raise separate ticket? |
@hmheng Two audio issues described in this ticket are specific to mobile Safari. They are bugs in the mobile Safari browser itself. |
All, quick update on state of these two issues:
2. RemoteParticipants can't hear audio from iOS Safari after using another app (ex. Siri, Youtube etc) Status: We found a workaround for this Safari bug and plan to ship it in the next release of our SDK. The workaround is expected to work on iOS Safari versions 13.4+. Follow this guide with the best practices from our dev team to avoid media issues in your applications https://www.twilio.com/docs/video/build-js-video-application-recommendations-and-best-practices |
@anna-vasilko Hi Anna, we are looking at a possible solution for the video/audio calls and faced that issue with our existing solution. I'm curious how reliable is your workaround and when do you plan to make it public? |
Hello @romanalyoshkin - The safari audio workaround is in test, and we are hoping to release this week. If you are interested you can try it out, and let us know how it works out for your application. Thanks, |
hi @makarandp0 are you talking about work around for issue #2 above right, not #1 ? |
@bjm88 yes, the workaround is only for Webkit Bug: https://bugs.webkit.org/show_bug.cgi?id=208516 |
Is that for iOS/Safari versions 13.4 and up, or for the older versions? @anna-vasilko |
Please be aware that using twilio-video https://github.com/twilio/twilio-video.js/tree/2.6.0-rc1 requires update with https://raw.githubusercontent.com/twilio/twilio-webrtc.js/4.3.0-rc1/lib/util/index.js. Otherwise there will be an error with
|
@makarandp0 |
Sorry if this is the wrong place to ask, but how can I detect if a user can't hear or see a peer? |
Hi everyone, We have just released version 2.7.1 which has workarounds for several iOS Safari audio and video bugs. Our internal testing showed that most of the common iOS Safari issues have been worked around in this release. Please try it out and share any feedback you may have for us. Thanks, Manjesh Malavalli |
Thanks for this update! Do you still suggest implementing a "test mic" check before entering a call? I'm still having the same issues when calling between mac and iPadOS Safari. The way to solve the issue seems to be simple minimise safari and then reopen it then the audio works fine. Should I be doing the mic test before entering the call? |
Yes, I would recommend checking the microphone (and camera) before joining the Room. Our best practices guide shows how you can build an audio level indicator. Hope it helps. Thanks, Manjesh Malavalli |
@manjeshbhargav Thanks. Do you have any recommendations for auto playing audio policy on mobile browsers? I'm able to get the microphone and videos fine. Just the iPad/iPhone is not playing the sound from the video... I'm making sure that the video is only joined after the user interacts with the screen Still no audio playing on the Safari mobile device. |
Can you share Room SIDs and browser console logs (enable SDK logging by passing Thanks, Manjesh Malavalli |
sid: RM0493997e3cebce408e0948cae4b57d80 2020-08-01 07:21:02.447Z | DEBUG in [connect #1]: Transport connected: Object |
@manjeshbhargav There is a lot of log content, apologies if I have pasted a load of nonsense in here.. |
@anna-vasilko For issue 1 (Remote audio does not play occasionally in iOS Safari browser) - we had a user who reported that they were only able to hear some of the remote participant's audio, but not all of them. For those who experienced issue 1 - was it an all or nothing thing? I'm trying to figure out if this is related or not (I can't reproduce myself, but I'm on iOS 13.6 and this user was on 13.4.1). |
@dan-steno It was not all or nothing, only some of the remote audio tracks would not play. Basically from what you describe it does sound like issue N1, which is fixed in the latest iOS versions but could still happen in older ones. |
Hello all. I think this problem may be reoccurring in ios/iPadOS 13.7 Our WebRTC system had this issue with ios 13.5 and lower. We confirmed it was fixed in ios 13.6 beta and the release on July 15th. Since then we have not experienced this issue unless the device was not upgraded...until... Yesterday, iOS 13.7 was released and immediately we had the problem again. In our case it is a Webrtc Meeting platform and not all users can hear the iPad user on the new iOS. We are working to confirm this - can anyone else confirm this bug is now "unfixed" ? Thanks. |
I can confirm that this is still an issue. Audio and video tracks are not working at all on some mobile devices while working on others. I've tested with multiple different iPhones on different browsers and haven't been able to see a clear pattern of what is causing the issue. It might be an issue with the iOS version - i.e. anything less than iOS 14 doesn't work, and 14+ does work - but I can't confirm. Based on the docs I've read from Twilio, they are not sure what the cause is as well, or they just haven't had the time to make the fixes needed for audio and video to work properly / consistently on mobile browsers. I'd like more clarity. |
voig, we had to redo our sdk to make this work. Problem will still be there with iOS 13.6 and below. It started happening on 13.7 as well, until we updated. I hope that helps. |
@davidfritsche17 Thanks for the info. In general that makes sense since iOS 14 was working when I tested. However, I tested today on 13.7 and it wasn't working at all for Also is this iOS compatibility documented anywhere? I've looked through the Twilio docs and wasn't able to find any up-to-date information about this issue. |
Tested again with Safari on two iPhones that are both using iOS 14 and the latest twilio-video sdk version and neither the audio or video is working properly. This issue definitely goes further than just iOS version incompatibility. |
Hey @voigtd This ticket tracks very specific audio issues related to older versions of Safari, which were confirmed to be fixed in iOS14. |
@anna-vasilko Understood. The reason I was adding here is because Twilio references this ticket as where to track "known issues with the main mobile browsers" in this post |
Just a note to confirm that the latest version of Mac Safari also had an audio challenge for two of our users today. Here's the browser: There were 5 people in a meeting and two could not hear one of the callers. Both users were on Mac Safari. This is the same behavior we had on the iPad reported above. We are now forced to block Safari completely due to this issue continuing for months, appearing to be fixed and then reoccurring. This is not a twilio issue, it's just Safari. |
We are now tracking 2 separate issues related to audio loss on iOS Safari. Both occur after an audio interruption by another application or service. #1232 Remote Audio Loss on iOS Safari We are actively investigating these issues and working to find potential workarounds and resolutions. To avoid confusion with existing issues we are closing this ticket as it's become difficult to track distinct customer reports and issues. If you believe your issue is distinct from the two referenced issues please file a new issue. |
Thank you idelgago, Here's some additional information: |
@idelgado I'm still facing issue with localAudiotrack only on iOS Safari (current version iOS 14.7.1 & twilio-video 2.15.3) user audio is not audbile to others.. have already tried pause and play audiotrack but doesn't help.. the audio is not audible from start itself and toggle audio doesn't help either, sometimes when I lock my phone and unlock the audio is audible to others |
I'm experience static-y, inaudible audio via iOS Safari 14.7.1 and twilio-video 2.7.2. This does not occur in Safari on Mac OS Big Sur nor on Chrome 92.0.45xx |
If I watch a remote livestream on my iPhone. --iPhone8plus |
@idelgado facing same issue on iOS 14.7.1 & twilio-video 2.15.3 Working on Mac Safari, Mac Chrome, and Android Devices |
@NikhilManapure Thanks for your comment. This ticket is Closed now, since it represented old issues which got fixed about a year ago. Can you please open a new ticket describing your issue on iOS 14.7.1. We will be happy to take a look! Please provide steps to reproduce, room sid and browser console logs if possible. Thank you. |
Hi @cindyloo @ixit-ken-okazaki @NikhilManapure |
this is still a problem, and is severe. No one has responded to the new issue, 1564 in 1.5 months, please advise. |
This ticket describes a couple of known audio issues in the iOS Safari browser and provides most recent status and Twilio recommendations on how to handle them:
Note:
to go through this guide to avoid most common pitfalls
1. Remote audio does not play occasionally in iOS Safari browser
Webkit Bug: https://bugs.webkit.org/show_bug.cgi?id=198545
Status: This issue was fixed by Apple, the fix is released in iOS version 13.6.
Reproducibility of this issue before the fix
2. RemoteParticipants can't hear audio from iOS Safari after using another app (ex. Siri, Youtube etc)
Webkit Bug: https://bugs.webkit.org/show_bug.cgi?id=208516
Status: A workaround for this issue is shipped in SDK version 2.6.0. The workaround is expected to work on iOS versions 13.4.X and 13.5.x, and based on our testing it solves the problem in most of the interruption use cases. We will continue adding iterative improvements in the future for some more rare/edgy use cases.
Reproducibility This is 100% reproducible in particular scenarios when other applications like Siri or Youtube takes over the mic. Example: Join a video room, share audio/video -> Open Siri and talk to it -> come back to your video application -> now your mic will be sending silence to the room, remote party will not be able to hear you.
Recommendation:
Follow this guide with the best practices from our dev team to avoid media issues across browsers in your applications:
Other important bugs in iOS Safari:
The text was updated successfully, but these errors were encountered: