HTML5 audio player error: "The provided double value is non-finite"
Your volume argument was in fact an event:
function setVolume(e) {
var volume = e.target.value;
music.volume = parseFloat(volume);
}
https://jsfiddle.net/08tgr254/1/
Your volume argument was in fact an event:
function setVolume(e) {
var volume = e.target.value;
music.volume = parseFloat(volume);
}
https://jsfiddle.net/08tgr254/1/