Skip to content Skip to sidebar Skip to footer

Play Mp3 File Using Jquery

How can i play an mp3 file using jquery in website.I m using servlets or http to play a song.Also how can i calculate total time of song played. Regards Angelina

Solution 1:

Try something like jPlayer.

Solution 2:

You can add an element with your sound to the page:

var sound = $('<embed autoplay="true" height="0" width="0" />');
sound.attr('src', urlOfMyMp3);
$('body').append(sound);

Source: Embed MP3 in website

Post a Comment for "Play Mp3 File Using Jquery"