Module – DFPlayer Mini – MP3 Speler
BESTELLEN Informatie (ENG): The DFPlayer Mini MP3 Player For Arduino is a small and low price MP3 module with an …
BESTELLEN Informatie (ENG): The DFPlayer Mini MP3 Player For Arduino is a small and low price MP3 module with an …
Website Informatie FFmpeg is vrije software die audio- en videobestanden converteert. Ook ondersteunt FFmpeg het converteren van streams zoals televisie- …
Website Informatie (ENG) Following the great history of GNU naming, LAME originally stood for LAME Ain’t an Mp3 Encoder. LAME …
Website Informatie (ENG) Audacity is a free, easy-to-use, multi-track audio editor and recorder for Windows, Mac OS X, GNU/Linux and …
Dit voorbeeld laat zien hoe je een MP3 bestand (audio.mp3) afspeelt via een javascript met behulp van jQuery.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<html> <head> <title>Java MP3 Speler</title> <script src="jquery.js" type="text/javascript"></script> </head> <body> <div class="play">[Play]</div> <div class="pause">[Stop]</div> <script> $(document).ready(function() { var audioElement = document.createElement('audio'); audioElement.setAttribute('src', 'audio.mp3'); audioElement.setAttribute('autoplay', 'autoplay'); //audioElement.load() $.get(); audioElement.addEventListener("load", function() { audioElement.play(); }, true); $('.Play').click(function() { audioElement.play(); }); $('.Pause').click(function() { audioElement.pause(); }); }); </script> </body> </html> |
Bron: stackoverflow.com