-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
iPhone: unplugging/replugging headphones causes audio problems #338
Comments
I neglected to mention In the scenario above, user C was on an iPhone 7 (not sure if wireless or using a wired adaptor). |
i tested and confirmed this on iPad. I didn't see any errors, and it seems like it would only completely die after several unplug/replugs. It seems like a bug in safari. |
I was not able to repro this with the three.js examples -- so may be fixable if we can track down what we're doing differently |
also not able to repro with janus echo server example |
I just fixed this issue in my app. In your AudioSystem, add something like this.
|
@keianhzo @robertlong You'll want the above fix as well. More or less add the code at this line https://github.com/mozilla/hubs/blob/ed15a0bc2347c7963fce828fe00fcfe8c29601c6/src/systems/audio-system.js#L98 There is also another fix for Safari iOS here #2643 (comment) |
Thanks @vincentfretin this is great work, we really appreciate your contributions. I'll create a PR for for this. And sorry for the delay, we have been a bit slow with Pr reviewing lately but we will make sure all this work gets into Hubs. |
While in a space with another user, user A unplugs headphones (standard issue Apple wired earbuds) then plugs them back in. The result is that they now cannot hear user B. It seems that sometimes it causes garbled audio instead of no audio. User B can still hear user A just fine as it doesnt seem to affect user A’s headphone mic—(or perhaps it’s using the built-in iPhone mic at this point?)
This persists until user B refreshed their page, which seems strange since the assumption is its an issue on user A’s end.
Then, to make things more interesting, user C joined and subsequently plugged in headphones, causing user B to not hear user C while user A could hear user C just fine.
The bottom line:
plugging in headphones post-join is likely to cause audio issues.
This issue was reproducible on two users’ iPhones. (6s)
The text was updated successfully, but these errors were encountered: