Why won’t this audio play | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why won’t this audio play

This is Radioactive by Imagine Dragons. Is the file too large to play? Or is it a different problem? https://code.sololearn.com/W3Fz9W7PSEzk/?ref=app

4th Apr 2018, 4:14 PM
🐺Michael🐺
🐺Michael🐺 - avatar
10 Answers
+ 4
https://code.sololearn.com/WrZAvBkDlHgw/?ref=app See the audio src and see if it helps.
4th Apr 2018, 4:38 PM
J.G.
J.G. - avatar
+ 3
@Bartosz Pieszko How do I do that?
4th Apr 2018, 4:38 PM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 3
Hmm. Yeah, idk. it may be the format. I'm not sure if it can work like that or not. It doesn't seem to work for me, whatever I try using that source.
4th Apr 2018, 9:18 PM
J.G.
J.G. - avatar
+ 2
@Bartosz Pieszko It is in this case.
4th Apr 2018, 4:30 PM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 2
@Bartosz Pieszko In the SoloLearn HTML course it says to use the src.
4th Apr 2018, 4:35 PM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 2
@J.G. It looks the same to me.
4th Apr 2018, 4:43 PM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 1
'src' attribute is for directiories, not for hypertext references.
4th Apr 2018, 4:28 PM
Bartosz Pieszko
Bartosz Pieszko - avatar
+ 1
@🐺Michael 🐺 It's href (short for Hypertext REFerence) for all kinds of links, including tags a and link. When it's not a link, you are setting the source, so it's src.
4th Apr 2018, 4:34 PM
Bartosz Pieszko
Bartosz Pieszko - avatar
+ 1
🐺Michael🐺 Then you have to do it on local directories.
4th Apr 2018, 4:37 PM
Bartosz Pieszko
Bartosz Pieszko - avatar
+ 1
When it comes to audio tag it's better if you use a .mp3 file format
4th Apr 2018, 5:16 PM
taib boufridi
taib boufridi - avatar