We're having a hard time embedding an audio file in an HTML page (we are using ASP.NET 2.0, but the code is actually HTML).
The audio should play automatically only once and no controls should be shown.
Case is, we originally used the code below, which worked fine on IE 8, Firefox 8, Chrome 15, Safari 5, and Opera 11.5:
<embed src="../Audio/warning.mp3" hidden="true" autostart="true" loop="false" width="0" height="0" />
But, probably after an update of some sort (or the installation of some codecs or something like that), it stopped working on IE 8 and IE 9 at our client's office; however, it still works fine on our computers when running from our localhost. However, when running from our internet server, we already have issues on Firefox.
After some investigation on the web, we asked our client to uninstall QuickTime, but that didn't help.
Also, we tried other tags such as <object> and even <audio> (HTML 5), but those don't seem to work properly on all browsers.
I guess my question is, do you guys have any suggestion on how to embed audio files so that it would work fine on all browsers?