web/static/res/js/incplayer.js
changeset 49 cb8403125d4d
parent 48 d92196482ad9
child 78 8c3f0b94d056
--- a/web/static/res/js/incplayer.js	Wed Dec 12 15:54:57 2012 +0100
+++ b/web/static/res/js/incplayer.js	Wed Dec 12 16:25:28 2012 +0100
@@ -208,10 +208,10 @@
 				$(self.progressCurrent).html(self.secondsToTime(currentTime));
 
 				// Detect vsquence end
-				if (self.popSeq.active == 2 && currentTime >= self.popSeq.duration()) {
+				if (self.popSeq.active == 2 && currentTime >= self.popSeq.duration() - 2) {
 					setTimeout(function() { 
 								location.href = "transition.html";
-							}, 2000);
+							}, 4000);
 
 				}
 			});
@@ -295,6 +295,7 @@
 
 		if (this.popSeq.active == this.sequences.length - 1) {
 			// We are at the last video
+			location.href = "transition.html";			
 			return;
 		}