Let’s talk about some of the issues I have inserted audio files into html and summarized through my local test (playing mp3 files):
1. <embed type=audio/mp3 src= autostart=true loop=false></embed>
Problem: Normal on IE8 (played through the media player plugin) but not on IE6 and IE7
Firefox needs to install QuickTime plug-in to play
Chrome can play by converting it into the <vidio> tag on html5 to play, but it will make the entire screen blue
Opera won't play automatically
2. <embed type=audio/midi src= autostart=true loop=false></embed>
Problem: IE6 and IE7 will not play normally, IE8 is normal
Normal on Firefox
Requires dirty QuickTime plugin to play normally on Chrome
Opera won't play automatically
3. <object data= />
Problem: Cannot play on IE6 and 7, IE8 will pop up prompts such as the word "Articx" that is not used normally.
Normal on Firefox
Normal on Chrome
Opera does not support it
4. <audio src= type=audio/mp3 />
Problem: HTML5 tag only supports Chrome
5.
Copy the code