I am developing a webpage which plays audio after pressing a button. This works well in Chrome and Firefox. However in Opera mobile, instead of playing the audio it opens up a prompt which asks us to either download, play or cancel the audio. This destroys the flow of my webpage.
How can I prevent that prompt from appearing and just play the audio?
<audio id='snd_c'>
<source src="cor.ogg" type="audio/ogg">
</audio>
<audio id='snd_w'>
<source src="wrong.ogg" type="audio/ogg">
</audio>
<audio id='snd_s'>
<source src="skip.ogg" type="audio/ogg">
</audio>
$("#snd_c")[0].play();
$("#snd_w")[0].play();
$("#snd_s")[0].play();