I'm making an app with HTML5 and I've a problem when I try to play sound. The app crashes when I trying to repeat the same sound.
The encapsulator 2.0 can play the same sound multiple times?
The first code I've used it this:
when load object
- var sound = new Audio();
- sound.src = "my audio file .wav "
when hit the object
- sound.currentTime = 0;
But doesn't work, only play the sound 1 time.