-
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
iOS 15 sound does not resume when woken from sleep #3977
Comments
Risen in priority as a vendor cannot pass a TRC with this bug |
Related issue with another JS library: goldfire/howler.js#1525 |
Reading more into it, I don't think there's an easy solution to this. To get around this issue, we would have to recreate the entire sound system in PlayCanvas and the sound components in the scene when this happens |
sounds similar to graphics engine handling context lost and restored events, where we need to re-create all graphics resources. Perhaps something similar is needed for sound. |
Reopening due to issue re-appearing: https://forum.playcanvas.com/t/ios-audio-not-resuming-after-standby/26408 |
I've been investigating this issue and here are my findings:
I believe the issue has something to do with PlayCanvas not correctly verifying if the |
Test Project: https://playcanvas.com/project/878048/overview/ios-15-sound-resume-issue
(Note, may take a few tries)
There's a script that is printing out the status of the context. When it locks, it has interrupted state and when it is unlocked, it prints 'running' which is odd. Do we need to create a new Audio Context because the old one is corrupted?
The text was updated successfully, but these errors were encountered: