+ 3

HTML audio I only hear sound on dektop pc

no clue of that stuff https://code.sololearn.com/W2xl6fvDe6nA/?ref=app

29th Oct 2018, 8:19 AM
Oma Falk
Oma Falk - avatar
3 Respostas
+ 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(); }) }
29th Oct 2018, 9:29 AM
Lord Krishna
Lord Krishna - avatar
+ 1
maybe the file size ?
29th Oct 2018, 8:34 AM
Taste
Taste - avatar
+ 1
too large?
29th Oct 2018, 8:44 AM
Oma Falk
Oma Falk - avatar