Skip to content Skip to sidebar Skip to footer

Javascript & Audio In HTML5 - Delay After The First 'play()' Call

I have a problem with this very simple HTML5 + Javascript code. It attempts to play a sound directly after it has been loaded.

Solution 1:

Ok the problem is actually well defined.

  • This bug only happens on chrome (no prob with Firefox)
  • It only concerns wav files
  • This has nothing to do with the play() function of Javascript, I get the same delay by simply opening the wav file directly in chrome

I still didn't find how to fix this delay and I don't really care now. I shall use MP3 or OGG files and that's going to be good enough.

Cheers !


Post a Comment for "Javascript & Audio In HTML5 - Delay After The First 'play()' Call"