To play the sound I use this code: <embed src="sound.mp3" hidden="true" autostart="true" loop="false">. Example: http://www.w3schools.com/media/tryit.asp?filename=trymedia_soundmidiembed
But Mozilla (just tried in Mozilla and it’s enough why I want to find a solution) asks for the plugin (QuickTime). So, my question is, can I substitute my code to play the sound without asking people to download certain plugin? Or what should I do?
By the way, it is for live chat, when message arrives I add this code to the body.
Thank you.
I suggest looking into using HTML5’s
<audio>tag. Here’s a good starting point: http://html5doctor.com/native-audio-in-the-browser/Code example: