How can I play an mp3 file using jquery on a website. I use servlets or http to play a song. Just like I can calculate the total playing time of a song.
Relations Angelina
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 on the site
Try something like jPlayer .
Source: https://habr.com/ru/post/1747343/More articles:Selectively search and replace specific strings using regex - regexIPhone / iPad rotation - objective-cОбновление изображения ImageUrl в репитере - c#The best and shortest books in C ++ / STL / C # / J2SE to prepare for work inteview / tests - c ++How good is the circular memory buffer on Wikipedia? - cGetting the location of the .bat file from within - windowsWPF, White and Infragistics - testing projectwhy can't we initialize the servlet using the constructor itself? - javaОтображение таблиц из существующей базы данных в объект - подходит ли Hibernate? - javaHTML Why do iframe contents load twice? - htmlAll Articles