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

No intro sound when opening the game for the first time #14

Open
thetravis opened this issue Feb 16, 2023 · 0 comments
Open

No intro sound when opening the game for the first time #14

thetravis opened this issue Feb 16, 2023 · 0 comments

Comments

@thetravis
Copy link

When opening the web page for the first time, there is no "Sakarin villapaitapeli" intro. This had huge impact on my game experience and I've heard reports of many gamers abondoning the game due to lack of proper intro.

The problem is due to play() method failing: "Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first". It can be preproduced in Chrome browsers (v. >66). This is intended behaviour of Chrome browser.

Solution: Force user to make input before starting the game or play the intro after clicking "Aloita".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant