diff --git a/src/jquery.imgplay.js b/src/jquery.imgplay.js index f8bbd4b..4478978 100644 --- a/src/jquery.imgplay.js +++ b/src/jquery.imgplay.js @@ -343,7 +343,7 @@ screen.clearRect(0, 0, cw, ch); screen.drawImage(img, (cw - vw) / 2, (ch - vh) / 2, vw, vh); } - } else if (buffer.length) { + } else if (buffer.length && index < total) { var wasPlaying = playing; plugin.pause();