I am working on music player and I ran into some issues I needed help on.
function play() {
document.getElementById("embed").innerHTML="<embed src='sound/1.mp3' autostart=true loop=false volume=100 hidden=true>";
return true;
}
<form action="" method="post">
<button class="btn blue" type="button" onclick="sound()">PLAY</button>
<div id="embed"></div>
</form>
When the sound is done playing, is there a way to replay it?
Also, is there a way for PHP to list all the .mp3 files in one folder in that format?