Skip to content

Set audio and scaling via environment variables? #254

Answered by jlesage
MrCussMustard asked this question in Q&A
Discussion options

You must be logged in to vote

To my knowledge, the problem is that the audio API must first be called from a callback triggered by a user input (e.g. a click). In other words, if you call, when loading the page, the same function that is called when clicking the unmute button, it won't work. This is a protection added by browsers to prevent a page from playing audio automatically, which would be problematic for users!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MrCussMustard
Comment options

@jlesage
Comment options

Answer selected by MrCussMustard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants