force autoplay on audio player

1

With the new update of chrome the function autoplay of the audio does not work, I would like to know how to force autoplay, already tried it:

document.getElementById("controles").setAttribute('autoplay', true);

So:

$("#controles")[0].autoplay = true; 

And so:

var controles = document.getElementById("controles");

function enableAutoplay() { 
    controles.autoplay = true;
    controles.load();
}

And no way it worked, does anyone know why?

    
asked by anonymous 12.05.2018 / 18:46

0 answers