Recently browsers started to block any kind of sound autoplay (unless it's in reaction to user action). Some do it well (like Firefox, which allows the user to unblock it), some are completely brain-damaged (like Chrome).
Usually games workaround it by installing a click handler that unlocks the audio on the first click made by user. Allegro.js could do something similar.
Recently browsers started to block any kind of sound autoplay (unless it's in reaction to user action). Some do it well (like Firefox, which allows the user to unblock it), some are completely brain-damaged (like Chrome).
Usually games workaround it by installing a click handler that unlocks the audio on the first click made by user. Allegro.js could do something similar.