I want to play an mp3 sound, when an event occurs and I am using the following piece of code:
var audio = new Audio('coins.mp3');
audio.play();
It works great under windows in Chrome, however if I open it on my 4.4 Android, it is muted. I tested on another android version (2.3, not Chrome) and it was working. It seems it is also working if I call the code from an onClick event on 4.4 Android.
Can anyone please explain this behaviour for me, as I can not find the answer after some hours of googling. :(
Thanks in advance!