+ 3

What link did html5 needed to play a music

what link should be inserted to html5 to play an audio? did we need download link? or an online play link? or else?

21st Sep 2018, 3:16 AM
Jingga Sona
Jingga Sona - avatar
7 Answers
+ 7
Jingga I am not sure if this will help but here are two little demo codes I wrote: https://code.sololearn.com/W0yL47MgEm7B/#html and https://code.sololearn.com/WjR4E7oIToeB/#html.
21st Sep 2018, 10:19 AM
Richard Myatt
Richard Myatt - avatar
+ 4
Your audio track should be hosted on a site which allows you to get a link to the source file. E.g. ...example.net/resource/myfile.mp3 This is usually the case where you own your own domain and database.
21st Sep 2018, 3:34 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
If you want to play music here you need a online link.
21st Sep 2018, 3:34 AM
Akib
Akib - avatar
+ 3
Try this lesson. Into src attribute write URL of the audio. https://www.sololearn.com/learn/HTML/2193/
21st Sep 2018, 6:11 AM
Jan Ơtěch
Jan Ơtěch - avatar
+ 2
Jan Ơtěch yes but what URL did audio use? is that a diwnload link?
21st Sep 2018, 12:27 PM
Jingga Sona
Jingga Sona - avatar
+ 2
I am not sure, but when you right clck on a youtube video, I think you need to select "Copy video adress". Audio probably works similary.
21st Sep 2018, 1:57 PM
Jan Ơtěch
Jan Ơtěch - avatar
23rd Sep 2018, 2:44 AM
Rowsej
Rowsej - avatar