I'm building a website with a music player, using an <audio>
tag.
I'm using jQuery to make some basic operation like "pause" and "play":
$("#music_player")[0].pause();
$("#music_player")[0].play();
In Chrome everything seems to be fine, but in Firefox it isn't working.
Does somebody know what is the problem? Or what other commands in JavaScript can control the audio tag?