+ 2

How can we make the audio in html programme play automatically?

Playing audio in html

13th Aug 2017, 10:39 AM
Rishita
Rishita - avatar
2 Answers
+ 8
there's a way for sure on Sololearn, I don't know how though. analyze this code: https://code.sololearn.com/WDvA80m1oW1w/?ref=app
13th Aug 2017, 11:18 AM
Ahri Fox
Ahri Fox - avatar
+ 3
<audio src="http://www.sololearn.com/uploads/audio.mp3" autoplay controls loop> if you remove "controls", you remove the controls if you add "loop", it's gonna loop it if you add "autoplay", you make it auto play once user opens the page
13th Aug 2017, 12:31 PM
Arnas Masalis