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.
5 Answers
+ 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 ^^
+ 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?
0
I hv the audio file with. Mp3 extension
0
The icon is showing up but it's not playing
0
Same problem