hello, i use jPlayer to play sounds when the user clicks an element. but unfortunately, the sound is only played the first time. for all further clicks nothing can be heard.
initialization:
$("#jquery_jplayer_1").jPlayer({
ready
: function () {
$
(this).jPlayer("setMedia", {
mp3
: "file.mp3"
});
}
});
onclick:
$("#jquery_jplayer_1").jPlayer("stop");
$
("#jquery_jplayer_1").jPlayer("play");