16 Answers
New AnswerHow Can I Make Audio AutoPlay In HTML?... I kept autoplay in audio element its not working. How can i do it? Please say me..
12/2/2020 1:39:36 PM
Mr.Kalyankumar16 Answers
New AnswerMr.Kalyankumar check again bro it's will take some time because your music is from dropbox I added body.onclick event when you click anywhere on window the audio will starts playing...
Hii Mr.Kalyankumar If you are asking to play "audio" automatically then you can use autoplay loop attributes.. As an example - https://code.sololearn.com/W2D5Woet5ww2/?ref=app And yea don't forget to have a look on the lesson provided by sololearn on "the audio element" Hope this helps ✌️
Piyush[21 Dec❤️] i tried it and the audio is playing, but not automatically... I have learnt the audio lesson from html, it wasn't working so i have requested a question, but ᕙ(@°▽°@)ᕗ {inactive} bro has solved my problem ☺️
Audio is playing, but it's not playing automatically... Im asking, how to make it to play automatically without clicking on play button... Bro😔
Mr.Kalyankumar Browsers doesn't allow to play an audio without any user gesture. You can do this with JavaScript So, in JavaScript you can't write audio.play() directly. You have to use an event to call it like mouse move, scroll, click, etc.
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message