From 3024fcb51340fec732947ac9ac1d45876079e2fe Mon Sep 17 00:00:00 2001 From: tammo0 Date: Wed, 16 May 2012 08:01:14 +0300 Subject: [PATCH] fix for #35 --- popcorn.sequence.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/popcorn.sequence.js b/popcorn.sequence.js index 47e2426..05897c2 100644 --- a/popcorn.sequence.js +++ b/popcorn.sequence.js @@ -325,7 +325,17 @@ play: function() { - this.playlist[ this.active ].play(); + if (((this.queue.length-1) == this.active) && + (this.inOuts["ofVideos"][this.active]["out"] >= Math.round(this.queue[this.active].currentTime))) + { + + return this; + + } else { + + this.queue[ this.active ].play(); + + } return this; },