0

Why does my browser not able to access the audio file?

I wrote a small html program just to play a song. I used the audio element and it was correct. Still my browser,Google Chrome, says that the audio file cannot be played. Why is it so?

10th Jul 2017, 11:59 AM
Jeet
Jeet - avatar
4 Answers
+ 3
wrong format,expired,used by too many users maybe? Ahh I can't guess your code
10th Jul 2017, 12:08 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
show Ur code
10th Jul 2017, 12:13 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 2
type="audio/mpeg" and source should be linked with proper path
11th Jul 2017, 5:02 AM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
0
My code is like this : <!DOCTYPE html> <html> <head> <title>My page</title> </head> <body> <audio controls autoplay loop> <source src="song.mp3" type="song/mp3"> Audio isn't supported by your browser. </body> </html>
11th Jul 2017, 2:41 AM
Jeet
Jeet - avatar