Is it possible to create a background audio? That whenever the page is open the audio plays automatically. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to create a background audio? That whenever the page is open the audio plays automatically.

background-audio

5th Dec 2017, 4:03 AM
Jean-Erolle Remy
Jean-Erolle Remy - avatar
3 Answers
+ 1
<audio controls autoplay loop> <source src="horse.mp3" type="audio/mpeg" autoplay="true"> </audio> Here, controls: shows the audio player autoplay: plays automatically loop: plays again after completion Note: Autoplay does not work in Android, user must click play button.
5th Dec 2017, 4:19 AM
Niush
Niush - avatar
+ 1
Thanks
5th Dec 2017, 10:37 AM
Jean-Erolle Remy
Jean-Erolle Remy - avatar
0
<embed src="">
5th Dec 2017, 6:29 AM
BodyaBuilder
BodyaBuilder - avatar