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

Audio is paused whenever tab is in background #13

Open
FormularSumo opened this issue Sep 10, 2024 · 0 comments
Open

Audio is paused whenever tab is in background #13

FormularSumo opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working minor Small impact on overall usability and none on game functionality

Comments

@FormularSumo
Copy link
Owner

This is despite the game attempting to play it - pause_on_loose_focus is not on.

I think this is another one of those web limitations unless you use the write API which I can't with the current set-up. If so the best solution might be to to have audio always be paused when you leave anyway (to avoid any potential issues/audio stuttering to a stop), and just keep game logic running when the pause_on_loose focus setting is off - assuming this works properly everywhere - I don't think it always does on mobile. But like with #5 I'm not sure there's much I can do about that. As long as the toggle is off by default, it's better to have the option for desktop where it does work I think.

Current behaviour is that sometimes changing tab and coming back causes the track that was playing to be skipped as it thinks it has finished when it finds out it's not playing - but somehow manages to still remembers its place in that track when it gets round to it again 🤔

@FormularSumo FormularSumo added bug Something isn't working minor Small impact on overall usability and none on game functionality labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor Small impact on overall usability and none on game functionality
Projects
None yet
Development

No branches or pull requests

1 participant