0

I have something like this:

<embed id="wavfile" src='wavfile.wav' hidden="true" autostart="false" loop="false" height="0" width="0">

I don't want it to start immediately, I want it to start on some button click, so on button click I tried changing autostart parameter to true but nothing happens, still not starting.

$('#wavfile').attr("autostart","true");

Any ideas how to trigger it?

Thanks

  • Have you heard of the ` – Musa Jul 27 '12 at 00:05
  • Ok, let's say I use –  Jul 27 '12 at 00:30
  • Thanks for tip, I found answer, while using –  Jul 27 '12 at 01:00

1 Answers1

0

http://www.schillmania.com/projects/soundmanager2/

Comes from - among others, it's a pretty standard and well-known project - here: Playing sound notifications using Javascript?

Community
  • 1
  • 1
Aadaam
  • 3,579
  • 1
  • 14
  • 9
  • Thank you for your answer, I did saw that question/answers but it takes time to load and messes up synchronization and soundmanager2 is too complex for I think, simple problem –  Jul 27 '12 at 00:18