JQuery: How can I start / play a sound file whenever I want?
I have some code that basically inflates a "balloon" after 15 or so and then makes it appear at 16th stage. (yes, images are changed). Now I'm wondering if JQuery can be used to play a sound file whenever I reach that 16th stage (or when any var reaches any value), in other words ... whenever I want.
I found several jQuery plugins but they all create this player that I have to click to play the file. How do I skip this 'click' part so that the sound is just ... directly / automatically played?
http://www.sean-o.com/jquery/jmp3/
http://www.happyworm.com/jquery/jplayer/
Any help from G. Campos is greatly appreciated
a source to share
Hrmm ... seems like nobody bothered to check here: o
The answer to my question turned out to be simple:
1.- Loading the player:
// load mp3 player with autoplay on
$(".mp3").jmp3();
2.- Change jsmp3.js where it reads:
"autoplay": "false" ---> change it to "true"
The rest was just hiding the player.
Okay, congratulations ... myself
a source to share