Using playCatchPromise for delayed sound playback

This commit is contained in:
Pavle Goloskokovic 2018-01-18 14:14:14 +01:00
parent 3a7d06b48a
commit ca614166b1

View file

@ -206,7 +206,7 @@ var HTML5AudioSound = new Class({
this.audio.currentTime += Math.max(0, time - this.startTime) / 1000;
this.startTime = 0;
this.previousTime = this.audio.currentTime;
this.audio.play();
this.playCatchPromise();
}
return;
}