So in my audio player (ka-musicplayer.glitch.me) i saw a flaw that when i played audio by typing the path to an MP3 it returned that. If i predefine the MP3s, it works. Feel free to see the code here.
var input = document.getElementById("input");
var inputVal = "";
if (input) {
inputVal = input.value;
}
var player = new Audio(inputVal);
player.crossOrigin = "anonymous";
var s2 = document.createElement("button");
s2.innerText = "Play";
s2.addEventListener("click", function() {
player.src = inputVal;
player.play();
});
document.body.appendChild(s2);
<!DOCTYPE html>
<head></head>
<body>
<input id="input" />
Check JS Console in current browser for error