Is it possible to play a quick call on a website without a plugin (without Flash or Quicktime)?

I have a one-page web application that displays real-time data using only HTML / CSS / JS. I managed to get Flash out of it.

Now I want to play a little call, but I do not want the site to depend on Flash. This is just a call to indicate a new chat, so it is not a huge stumbling block, but I would like to find a way.

Is this possible - I guess, since you need something local to play the sound, but I hope here!

Thanks in advance for your help!

Edit: I cannot use HTML5 yet.

+2
source share
3 answers
+4

.wav , html? - - UCL

+2

Example 2 from this web page shows a good example. A simpler version of this example would be ...

function playSound(soundfile) {
  document.getElementById("sound_element").innerHTML= 
  "<embed src='"+soundfile+"' hidden=true autostart=true loop=false/>";
}

HTML will be like that ...

<span id="sound_element"></span>

This places the hidden embedded file on the web page. You can call this function by doingplaySound(Path/To/File)

0
source

All Articles