+ 3
HTML audio I only hear sound on dektop pc
no clue of that stuff https://code.sololearn.com/W2xl6fvDe6nA/?ref=app
3 Antworten
+ 4
Autoplay is blocked on mobile. add the following code to javascript it will start music playback after everything is loaded and the body is clicked.
//In my testing the playback started after the pumpkin was rendered.
this.onload=
function(){
document.querySelector('body')
.addEventListener( "click",
function(){
document.querySelector('audio').play();
}) }
+ 1
maybe the file size ?
+ 1
too large?