web/static/res/js/incplayer.js
changeset 49 cb8403125d4d
parent 48 d92196482ad9
child 78 8c3f0b94d056
equal deleted inserted replaced
48:d92196482ad9 49:cb8403125d4d
   206 				// Update the current time position
   206 				// Update the current time position
   207 				var currentTime = self.popSeq.currentTime();
   207 				var currentTime = self.popSeq.currentTime();
   208 				$(self.progressCurrent).html(self.secondsToTime(currentTime));
   208 				$(self.progressCurrent).html(self.secondsToTime(currentTime));
   209 
   209 
   210 				// Detect vsquence end
   210 				// Detect vsquence end
   211 				if (self.popSeq.active == 2 && currentTime >= self.popSeq.duration()) {
   211 				if (self.popSeq.active == 2 && currentTime >= self.popSeq.duration() - 2) {
   212 					setTimeout(function() { 
   212 					setTimeout(function() { 
   213 								location.href = "transition.html";
   213 								location.href = "transition.html";
   214 							}, 2000);
   214 							}, 4000);
   215 
   215 
   216 				}
   216 				}
   217 			});
   217 			});
   218 
   218 
   219 			self.listenEvent(pop, "canplaythrough", true, function() {
   219 			self.listenEvent(pop, "canplaythrough", true, function() {
   293 			return;
   293 			return;
   294 		}
   294 		}
   295 
   295 
   296 		if (this.popSeq.active == this.sequences.length - 1) {
   296 		if (this.popSeq.active == this.sequences.length - 1) {
   297 			// We are at the last video
   297 			// We are at the last video
       
   298 			location.href = "transition.html";			
   298 			return;
   299 			return;
   299 		}
   300 		}
   300 
   301 
   301 		// Go to the next video
   302 		// Go to the next video
   302 		var jumpTime = this.popSeq.durationSeqs(this.popSeq.active + 1);
   303 		var jumpTime = this.popSeq.durationSeqs(this.popSeq.active + 1);