File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments