Skip to content

Commit ac7be30

Browse files
Reverting previous commit since it did not fix the issue
1 parent d50c04e commit ac7be30

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,17 +213,10 @@ var HTML5AudioSound = new Class({
213213
}
214214
return;
215215
}
216-
var currentTime = this.audio.currentTime;
217-
// skipping looping and ending logic if current time is 0
218-
// since some HTML5 Audio implementations set currentTime
219-
// value to 0 when changing playback rate or performing any
220-
// other operation on an audio tag object
221-
if (currentTime === 0) {
222-
return;
223-
}
224216
// handle looping and ending
225217
var startTime = this.currentMarker ? this.currentMarker.start : 0;
226218
var endTime = startTime + this.duration;
219+
var currentTime = this.audio.currentTime;
227220
if (this.currentConfig.loop) {
228221
if (currentTime >= endTime - this.manager.loopEndOffset) {
229222
this.audio.currentTime = startTime + Math.max(0, currentTime - endTime);

0 commit comments

Comments
 (0)