How to insert an audio element present in my pc?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

How to insert an audio element present in my pc??

30th Mar 2017, 8:33 PM
Aaditya Sulakhe
Aaditya Sulakhe - avatar
4 Answers
+ 13
<audio controls> <source src ="///(file path)\(file name).(audio format,i.e.,mp3,ogg )" type="audio/mpeg"> </audio>
30th Mar 2017, 8:43 PM
Aaditya Sulakhe
Aaditya Sulakhe - avatar
+ 1
if you use <audio autoplay> then the audio will be played as background music.there will be no control. and if use <audio autoplay > then audio will be automatically played at startup but you can control it after
2nd Apr 2017, 5:05 AM
Joydeep Halder
Joydeep Halder - avatar
0
easy <audio src="file:///c፡/a.Mp3" />
2nd Apr 2017, 7:25 AM
<INTMAX>
<INTMAX> - avatar
0
<audio src="address of the song" controls> </audio>
3rd Apr 2017, 5:57 AM
Ñïkēt JøsHî
Ñïkēt JøsHî - avatar