Question
Audio Issue: how to call sounds correctly? (Html5 canvas games)
Hi,
I´m having an audio issue with several games I have made with Animate cc html5 canvas. The problem is the " Autoplay policy" of Chrome and other browsers:
"The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page."
Although my audios starts after the user interacts with the game, this doesn't seem to be enough because the error keeps showing up in the browser.
I guess they must be called or declared in a different way than I'm used to.
I simply put the sounds on the timeline of a movie clip and then play them, some when the user clicks a button, and others through code when the user hits or misses.
I have searched for the solution but I can't find it, I will be very grateful if someone can share their way to use sounds in the correct way.
