+ 33

How do I add audio to work automatically in HTML?

I'm trying to make a web code which should automatically play the audio if we run it

4th Nov 2020, 3:59 PM
Simba
Simba - avatar
18 Respostas
+ 16
ααdĂ­tчα âŁïžThank you! it would be good if it is working without any click I don't talk about this https://code.sololearn.com/WxPVZz819g1O/?ref=app
4th Nov 2020, 4:12 PM
Simba
Simba - avatar
+ 13
Kelvin Paul & MÇŸÉ–â†»ĂŽÉ–É†â±€đŸ’‰đŸ–– Thank you both! But I'm unable to hear the rain song which is added in that code It's working?
4th Nov 2020, 4:25 PM
Simba
Simba - avatar
+ 13
I made something like this at last. Btw, I don't know why audio link is not working? https://code.sololearn.com/Wp565OaM4UkP/?ref=app Edit: MÇŸÉ–â†»ĂŽÉ–É†â±€đŸ’‰đŸ–– & Kelvin Paul But it's working here. That's why I was a little confused https://code.sololearn.com/WxPVZz819g1O/?ref=app
4th Nov 2020, 5:08 PM
Simba
Simba - avatar
+ 6
https://code.sololearn.com/WWs0kE6sOMVf/?ref=app Simba See his code By MÇŸÉ–â†»ĂŽÉ–É†â±€đŸ’‰đŸ––
4th Nov 2020, 4:13 PM
Kelvin Paul
Kelvin Paul - avatar
+ 6
Simba try to use small mp3 files reducing bitrate for online purpose is more good
4th Nov 2020, 4:31 PM
Kelvin Paul
Kelvin Paul - avatar
+ 6
Where is your file extension? also remove ?dl=0
4th Nov 2020, 5:19 PM
Kelvin Paul
Kelvin Paul - avatar
+ 3
<audio src="music.mp3" autoplay> </audio>
5th Nov 2020, 7:00 AM
Ashish Anand
Ashish Anand - avatar
+ 2
you can add a loop at the being of the audio tag .
4th Nov 2020, 9:21 PM
Wepuhuluwilliam
Wepuhuluwilliam - avatar
+ 2
By using HTML – EMBED MULTIMEDIA <embed>
4th Nov 2020, 9:30 PM
Ola Samuel Oluwapelumi
Ola Samuel Oluwapelumi - avatar
0
I still don't understand how to add video/audio in coding HTML 🙂
9th Feb 2023, 8:00 AM
Shifa Khan
- 4
What is this app?
6th Nov 2020, 7:58 AM
Ravan Hu Mai