+ 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?
7 Antworten
+ 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.
+ 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.
+ 3
If you want to play music here you need a online link.
+ 3
Try this lesson. Into src attribute write URL of the audio. https://www.sololearn.com/learn/HTML/2193/
+ 2
Jan Štěch
yes but what URL did audio use?
is that a diwnload link?
+ 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.
+ 2
To play music, you could use an oscillator:
https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createOscillator