This would require someone to load a plugin like Windows Media Player, VLC or quicktime within the browser. You would be better off resorting to the new HTML5 audio tag as this would use a browser native audio decoder.
http://www.w3schools.com/html/html5_audio.asp
Code: Select all
echo '<audio controls>
<source src="clink_sound.mp3" type="audio/mpeg">
</audio>';
May I ask, as I noticed the file name is "clink_sound.mp3", what is variable about it? Is it an audio someone places in the chat, or is it a sound when someone receives a message? In this case it would be better to play the sound through JavaScript as your DOM will become cluttered with audio objects.
Fighting for peace is declaring war on war. If you want peace be peaceful.