From c745e096ad16025c8a776596d8230510b6925ebb Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 18 Feb 2018 21:20:21 +0100 Subject: [PATCH] Fixed pickAndPlayAudioTag method docs --- src/sound/html5/HTML5AudioSound.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 4876ebcac..f0e2d3813 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -242,18 +242,15 @@ var HTML5AudioSound = new Class({ this.reset(); return false; } - var seek = this.currentConfig.seek; var delay = this.currentConfig.delay; var offset = (this.currentMarker ? this.currentMarker.start : 0) + seek; this.previousTime = offset; this.audio.currentTime = offset; this.applyConfig(); - if (delay === 0) { this.startTime = 0; - if (this.audio.paused) { this.playCatchPromise(); @@ -262,15 +259,12 @@ var HTML5AudioSound = new Class({ else { this.startTime = window.performance.now() + delay * 1000; - if (!this.audio.paused) { this.audio.pause(); } } - this.resetConfig(); - return true; },