Why my audio not playing??? Please help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why my audio not playing??? Please help me

Help me or explain me https://code.sololearn.com/WRIw823n6Kkf/?ref=app

4th Mar 2021, 9:56 PM
Aman Bhardwaj
Aman Bhardwaj - avatar
5 Answers
+ 1
Hi! most likely, your link to the song leads to the html page with this song, and not to the audio file itself. it's probably located somewhere else. give a direct link to the song file
4th Mar 2021, 10:01 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
How I find direct link of music file
5th Mar 2021, 1:51 AM
Aman Bhardwaj
Aman Bhardwaj - avatar
5th Mar 2021, 3:38 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
although that doesn't seem to work either. it is better to download the song file yourself, then upload it to your cloud storage, and from there insert a direct link into your html code. Upload content with Dropbox [Tutorial] https://code.sololearn.com/WW6t4B73kJVz/?ref=app How To Upload your phone images on SoloLearn using phone https://code.sololearn.com/WT3661NHpV3B/?ref=app
5th Mar 2021, 3:44 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
By inspecting the element i got the url with spaces. In chrome it works perfectly without need of encoding even the download button works as intended. But in Firefox it plays only from the pagaworld page but it fails to download using the dowbload button. So i encoded it with url tool and got the spaces replaced by %20 and even with that im not able to play it. My doubt is why Firefox can play it if its src contains spaces and fails when trying to download it, since both src are the same. Im glad I came across this question it really helps me learn. ty
5th Mar 2021, 4:04 AM
Arturop
Arturop - avatar