diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 7bc713e1b..3ff391833 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -126,7 +126,16 @@ var HTML5AudioSound = new Class({ BaseSound.prototype.stop.call(this); }, update: function (time, delta) { - + if (this.isPlaying) { + // handling delayed playback + if (this.startTime > 0) { + if (this.startTime < time) { + this.audio.currentTime += (time - this.startTime) / 1000; + this.startTime = 0; + this.audio.play(); + } + } + } }, destroy: function () { BaseSound.prototype.destroy.call(this);