JSFiddle - React, Tailwind, and code Playground
HTML
<audio id="Radio21"
<source src="http://www.radio21.ro/Radio21Live.m3u"
type='audio/m3u'>
</audio>
<img src="http://www.clausewl.com/wp-content/uploads/2013/10/Radio-21-150x150.png" width="20%" height="20%"
onclick="aud_play_pause()"></>
<script>
function aud_play_pause() {
var Radio21 = document.getElementById("Radio21");
if (Radio21.paused) {
Radio21.play();
} else {
Radio21.pause();
}
}
</script>
<audio id="RadioZU"
<source src="http://stream.radiozu.ro:8020/listen.pls"
type='audio/pls'>
</audio>
<img src="http://www.clausewl.com/wp-content/uploads/2013/10/Radio-ZU-150x150.png" alt="Radio ZU" width="20%" height="20%"
onclick="aud_play_pause()"></>
<script>
function aud_play_pause() {
var RadioZU = document.getElementById("RadioZU");
if (RadioZU.paused) {
RadioZU.play();
} else {
RadioZU.pause();
}
}
</script>