+ 13
How to add song in my html program on SoloLearn ?
I did coding for it but song is not playing. and I want with autoplay feature hope u understand
7 Antworten
+ 5
I took a look at the code on your profile. You want to change
src="https://drive.google.com/file/d/1bTW0KsPaehTb9Oh9zHoI58tYEcQTDq1h/preview?uc=sharing"
To
src="https://drive.google.com/uc?id=1bTW0KsPaehTb9Oh9zHoI58tYEcQTDq1h"
+ 12
Robert Aros Thank you so much sir
+ 8
Agree with Robert Aros
Host your Music file & add the link to the src
https://www.sololearn.com/discuss/1054246/?ref=app
+ 4
I found an article which describes how to use the audio tag.
In short, it looks like you need the 2 attributes for each source tag inside your audio tag; 'src' which specifies the source (either url or file) and 'type' which specifies the file type.
<audio controls autoplay>
<source src='audioFile.mp3' type='audio/mpeg'>
<source src='audioFile.ogg' type='audio/ogg'>
</audio>
Cred: https://www.w3schools.com/tags/tag_audio.asp
+ 2
Definitely a good add!
+ 2
Anytime!
+ 1
i do I love this studying