0
audio file not playing
i have an audio. play() which gives an error "the element has no supported sources".. but i have defined audio. src="some file. mp3"... https://code.sololearn.com/WZgZLPS54E9q/?ref=app
8 Respostas
+ 3
You wanted to use the button? Like when you onlick the button, the audio will play.
+ 2
Please show your code so we can help you.
+ 2
I hope this will help https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_audio_play
+ 2
look at this code:
https://code.sololearn.com/W8fkxqV2918V/?ref=app
It’s working for me with my audio source. Maybe your audio source is incorrect.
+ 1
🐲JTLZ 🐲 [#Never Give Up!] I've added the code..
+ 1
0
🐲JTLZ 🐲 [#Never Give Up!]
but it's giving an error saying "the element has no supported sources".. (the path defined is correct btw)
0
🐲JTLZ 🐲 [#Never Give Up!]
i don't understand!! I've done the same thing in my code... but its not working..