0

In html ,is autoplay attributes not support in mobile ...... describe a little about this attribute ...ūüôŹ

15th Jan 2021, 12:16 PM
RD:programmer
RD:programmer - avatar
4 Réponses
+ 4
Mr. Unknown Nowadays many browsers doesn't support autoplay attribute either use javascript function playMusic () { const audio = document.querySelector("audio"); audio.play(); } window.onlod = () => { document.body.addEventListener("click", playMusic); document.body.addEventListener("mousemove", playMusic); }
15th Jan 2021, 1:42 PM
Krish
Krish - avatar
+ 1
Autoplay attribute support on all over devices.
15th Jan 2021, 12:27 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
But when I put it and run the code ūü§ē nothing happen .....!!!!
15th Jan 2021, 12:30 PM
RD:programmer
RD:programmer - avatar
0
Make sure that you include controls attribute which show controls like play/pause , sounds ,full-view etc
15th Jan 2021, 12:56 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar