I should probably ask in like a dedicated html/old web forum and not spacehey but. here i am
I want to put an audio player on my site. I have one already on my neocities, and the code is laid out like this basically:
<div>
<img id="player" src="PNG"
onclick="buttonClick()">
</div>
<audio id="audio" loop>
<source src="THIS IS WHAT I WANNA KNOW ABOUT :(">
</audio>
<script>
function buttonClick() {
document.getElementById('audio').play();
document.getElementById('player').onclick = notButtonClick;
}
function notButtonClick() {
document.getElementById('audio').pause();
document.getElementById('player').onclick = buttonClick;
}
</script>
not too complicated i don't think. but i don't want to have to download an individual mp3 for each song and upload them one-by-one, I'd rather have like a playlist hosted somewhere that I can just swap songs out of and have them automatically update on my site. afaik though the only src you can put in an <audio> tag though is mp3 (or whatever the fuck ogg is), is there some way i can re-work this to make it link to some other site or link to a collection of mp3s somehow?