+ 4

Why new audios are not working in HTML?

7th Apr 2020, 4:49 AM
Vishal Lakhukale
Vishal Lakhukale - avatar
6 odpowiedzi
+ 4
You need to link the actual file. Such a file ends with . mp3 or .ogg.
7th Apr 2020, 5:12 AM
Zachary Taylor
Zachary Taylor - avatar
+ 4
You are not selected audio file try this <audio controls src="https://file-examples.com/wp-content/uploads/2017/11/file_example_WAV_1MG.wav"> </audio>
7th Apr 2020, 5:12 AM
Mahmudul Hasan
Mahmudul Hasan - avatar
+ 3
Share your code and we could try to help!
7th Apr 2020, 4:50 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
hi, do you need an appropriate file for embeded a audio file like Zachary suggested. However if you don't find your own audio .mp3 or ogg you can upload in some free hosting site like https://www.000webhost.com/ and after you can put the url in your code Html. p.s Remeberuse the correct syntax of the code to have a good result. <audio src="yourfileaudio.mp3" controls></audio>
7th Apr 2020, 8:11 AM
Alessio Farroni
Alessio Farroni - avatar
+ 2
<audio src="https://www.mediafire.com/download/cr0ne9wvxihykyi" control> Audio element not supported by your browser </audio> This is not working
7th Apr 2020, 4:55 AM
Vishal Lakhukale
Vishal Lakhukale - avatar
0
hello,Vishal Lakhukale please try this code for audio <!DOCTYPE html> <html> <head> <title>home </title> </head> <body> <center> <h1> Press this button for sound </h1> <audio id="music"> <source src="beep.mp3" type="audio/mpeg"> </audio> <button onclick="bell()"> Press Here</button> </center> <script type=""> var audio =document.getElementById("music"); function bell() { audio.play() } </script> </body> </html> i hope above information will helpful for you. this program is just for your understanding
8th Apr 2020, 5:38 AM
Ishan Shah
Ishan Shah - avatar