0
In html ,is autoplay attributes not support in mobile ...... describe a little about this attribute ...🙏
5 ответов
+ 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);
}
+ 1
Autoplay attribute support on all over devices.
0
But when I put it and run the code 🤕 nothing happen .....!!!!
0
Make sure that you include controls attribute which show controls like play/pause , sounds ,full-view etc