+ 1
How do I upload an audio to use it in html?
How do I upload an audio to use it in html?
12 Antworten
+ 1
Well, try this web site to get direct link to play mp3 from google drive.
https://softgateon.herokuapp.com/directlink/
+ 4
First upload the audio on google drive or Dropbox and then copy the link that you uploaded then add the link in the html. For example:
<audio controls autoplay>
<source src="add the link here" type="audio/the audio file type here">
Your browser does not support the audio element.
</audio>
If there is any question i will accept.
If you able to share your code attempt that is better to help you!
+ 3
Matiyas
Thank a lot!
+ 2
it worked from here
https://softgateon.herokuapp.com/directlink/
+ 2
Good 👍. Happy Coding!
+ 1
Matiyas
I did it and chrome gives me an error
(The audio is in mp3)
Error:
Uncaught (in promise)
DOMexception: the element has no supportex sources
+ 1
Can you show us your code attempt?
+ 1
It's basically this
https://code.sololearn.com/WY5yu4O2kVsI/?ref=app
I tried having the audio in a local file and it works fine
delay 1-2 seconds
+ 1
does not end in mp3
0
JoseD try to upload on Dropbox and then copy the url make sure in the end of the url must be .mp3
0
Ok
0
JoseD that solve your question?