-
Notifications
You must be signed in to change notification settings - Fork 3.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
Audio not working on AVP in immersive mode #14927
Comments
This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale". |
This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale". |
Up as this is a bug it should be prioritized |
I looked into this and found Safari is suspending the audio context when entering immersive mode. This occurs with any XR experience that uses the Web Audio API, so it's not a Babylon-specific issue. I was able to resume the audio context from the JS console while debugging in immersive mode, so we should be able to do the same in the Babylon audio engine. Note that the Quest browser doesn't have this issue and won't be affected by repeated calls to I'll discuss it with @RaananW to see what he thinks about addressing this AVP Safari behavior/feature. |
Thanks for digging into this and fixing it. We noticed this a few months ago in our BabylonJS WebXR app, but hadn't gotten around to investigating since most of our ideal customers are using Pico 4s (and that browser doesn't have this problem). |
Repro
https://playground.babylonjs.com/#KR5CRQ#17:
The text was updated successfully, but these errors were encountered: