0

HTML AUDIO TAG RELATED

<!DOCTYPE html> <html> <head></head> <body> <header> <audio controls> <source src="MY.mp3" type="audio/mpeg"> <source src="MY.ogg" type="audio/ogg"> </audio> </header> </body> </html> THIS IS MAY HTML CODE , WHEN I RUN IT IN THE GOOGLE CHROME MY AUDIO FILE IS NOT SHOWING UP ? please i need some help ? if anyone can suggest me plz leave a message.

2nd Mar 2017, 4:39 PM
Debasis nath
Debasis nath - avatar
5 Réponses
+ 4
Check this link: https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats ... and the codec used in you mp3 container: some formats are not supported by some browsers, and/or could depends of os capabilites ( this is why it's recommended to provide differents sources in the audio element -- but it's unuseful if you don't have the file :P ). This is also the reason I asked you if you are testing ( and if yes, if it's working or not ) on anothers browsers/devices ^^
3rd Mar 2017, 9:50 AM
visph
visph - avatar
+ 3
Do you have both ( at least one ) audio files related in same directory as your html? When you say "when I run it in the google chrome (...) not showing up", did you mean that it's "showing up" with other browser? device?
3rd Mar 2017, 9:37 AM
visph
visph - avatar
0
I hv the audio file with. Mp3 extension
3rd Mar 2017, 9:38 AM
Debasis nath
Debasis nath - avatar
0
The icon is showing up but it's not playing
3rd Mar 2017, 9:39 AM
Debasis nath
Debasis nath - avatar
0
Same problem
6th Oct 2020, 10:19 AM
minal mukarande
minal mukarande - avatar