+ 1

Why can't I hear the music?

<audio autoplay loop> <source src="audiofile.mp3" type="audio/mpeg'> <source src="https://ncs.io/track/download/442dfd89-c291-41b4-b93a-18c0ff73c1dc" type="audio/mp3"> </audio> https://sololearn.com/compiler-playground/W82lIPCK5Uk3/?ref=app

28th Mar 2024, 9:49 AM
Max
6 Respuestas
+ 2
Max , When I fix your mismatched quotes on line 11, I don't hear anything either. Your src URL doesn't directly name a file but instead looks like an indirect file ID for a content delivery network (CDN). When I paste the URL in a browser, it opens the download dialog rather than playing it, so maybe each person's local settings determine if it will play or download. Just a suggestion, but try using a src URL that specifically names an audio file instead of an ID for a CDN. Maybe that'll work.
28th Mar 2024, 11:51 PM
Rain
Rain - avatar
+ 1
change src="audiofile.mp3" type="audio/mpeg'> to src="audiofile.mp3" type="audio/mpeg"> It is working I can hear the music
28th Mar 2024, 3:58 PM
Ivan Brave Mutagoma
Ivan Brave Mutagoma - avatar
+ 1
It work on same place of music
30th Mar 2024, 9:06 AM
Sonal Kumar
Sonal Kumar - avatar
0
On the first type attribute the quotation marks are not the same. "audio/mpeg"
28th Mar 2024, 10:14 AM
Ivan Brave Mutagoma
Ivan Brave Mutagoma - avatar
0
It still doesn't work
28th Mar 2024, 10:45 AM
Max
0
try to find this song on another site and add his link.
29th Mar 2024, 11:39 PM
Levon Avetisyan
Levon Avetisyan - avatar