i dont have so much knowledge about JavaScript.
I have created some websites with some html5 player. Now my Question, when a player plays a song it doesn´t stopp when the next player is playing a song. at the moment i stop the player with a "click". I use this code:
<button id="play<?= $i ?>" class="btn-icon-play" onclick="document.getElementById('player<?= $i ?>').play()"></button>
<button id="stop<?= $i ?>" class="btn-icon-stop hidden" onclick="document.getElementById('player<?= $i ?>').pause()"></button>
<audio id="player<?= $i ?>" src="<?= $music['url'] ?>"></audio>
Can somebody help me?