Skip to content
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

[Device] Sleep vs wake #72

Open
beefchimi opened this issue Jan 22, 2024 · 0 comments
Open

[Device] Sleep vs wake #72

beefchimi opened this issue Jan 22, 2024 · 0 comments
Labels
💾 App Changes to the demo application 🧐 Question Further information is requested

Comments

@beefchimi
Copy link
Owner

If Earwurm audio is playing while your device goes to sleep, I believe what happens is the Audio Context is suspended. I am not sure if there is any API for reacting to a sleep or wake event from a device... but if so, we might want to make accomodations for that.

At the very least, we need to update the app/website to .pause() all audio when a device goes to sleep. An easy way to do this is probably to have a Stack listen to the context.state and call pause when the state switches to suspended.

@beefchimi beefchimi added 🧐 Question Further information is requested 💾 App Changes to the demo application labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💾 App Changes to the demo application 🧐 Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant