+ 12

What's the error in my code ?

Hey, I have made a code for the contest "Game of Throne" . I wanted to add music in the code buy unfortunately I could not do that . The play button for the audio is not working in that code specifically , The button is working in any new cleared Code... Is the problem in the code or anything else because when I copied my code in a new "Web" With Audio in it , Again audio is not playing ... It was perfectly playing when there was only audio tag and nothing more... Please Answer me ...This Question made me search in deep for Audio but I failed.. Now It's up to you rocks ... See the problem 👇👇👇 https://code.sololearn.com/Wx1vliysOVKm/?ref=app My published code👇👇👇 https://code.sololearn.com/WB2phvWnUoOb/?ref=app

12th Apr 2019, 7:59 AM
Shourya
Shourya - avatar
9 Respostas
+ 8
Chua Yu Chen I Have already checked that... That's the actual audio file...
12th Apr 2019, 8:11 AM
Shourya
Shourya - avatar
+ 7
Chua Yu Chen https://code.sololearn.com/WO85R6EPXBxX/?ref=app See this ...I have copied that link from this code... The audio is playing in this code as well
12th Apr 2019, 8:16 AM
Shourya
Shourya - avatar
+ 5
Anonymous 🇼🇳 Like for example your file must look something like: www.dropbox.com/audio/file/intro.mp3 right? If you don't get it, your file doesn't have that extension!
12th Apr 2019, 8:13 AM
[Abandoned]
[Abandoned] - avatar
+ 4
But like audio files must have their respective file extensions right? Maybe check your link. Maybe that link doesn't lead to the actual audio file.
12th Apr 2019, 8:10 AM
[Abandoned]
[Abandoned] - avatar
+ 4
the loading of sound file is delayed because you are routing with cors-anywhere. Put the direct Dropbox link as value to your src attribute.
12th Apr 2019, 10:26 AM
Gordon
Gordon - avatar
0
Hi
12th Apr 2019, 3:15 PM
Hacker Boy
0
Hi, it seems that the audio link you trying to use cannot be used with html audio tag but only javascript. If you want to use html audio tag, the source file must be direct and it should have .mp3, .wav etc. at the end. I've tried to edit using JS and added mute/unmute button if you would like to use it since there is no audio controls available. https://code.sololearn.com/WibTn7zD1Wsr
14th Apr 2019, 10:24 AM
@interfacesys
@interfacesys - avatar
- 1
I am learning html codding
12th Apr 2019, 3:16 PM
Hacker Boy