web/static/res/js/popcorn.sequence.js
changeset 78 8c3f0b94d056
parent 36 6cd5bc3dc7a2
equal deleted inserted replaced
77:0055b4bee4e3 78:8c3f0b94d056
   264       current.pause();
   264       current.pause();
   265 
   265 
   266       this.active = nextIdx;
   266       this.active = nextIdx;
   267       this.times.last = clip["in"] - 1;
   267       this.times.last = clip["in"] - 1;
   268 
   268 
   269       if ($popnext !== undefined) {
       
   270         console.log("$popnext ok!")
       
   271       }
       
   272       if ($popnext.currentTime !== undefined) {
       
   273         console.log("$popnext.currentTime ok!")
       
   274       }
       
   275       if (clip !== undefined) {
       
   276         console.log("clip ok!")
       
   277       }
       
   278       if (clip["in"] !== undefined) {
       
   279         console.log("clip[in] ok!")
       
   280       }
       
   281 
       
   282       // Hide the currently ending video
   269       // Hide the currently ending video
   283       current.style.display = "none";
   270       current.style.display = "none";
   284 
   271 
   285       // Show the next video in the sequence
   272       // Show the next video in the sequence
   286       next.style.display = "";
   273       next.style.display = "";
   323     clip: function( idx ) {
   310     clip: function( idx ) {
   324       return this.inOuts.ofVideos[ idx ];
   311       return this.inOuts.ofVideos[ idx ];
   325     },
   312     },
   326     // Returns sum duration for all videos in sequence
   313     // Returns sum duration for all videos in sequence
   327     duration: function() {
   314     duration: function() {
   328 
       
   329       var ret = 0,
   315       var ret = 0,
   330           seq = this.inOuts.ofClips,
   316           seq = this.inOuts.ofClips,
   331           idx = 0;
   317           idx = 0;
   332 
   318 
   333       for ( ; idx < seq.length; idx++ ) {
   319       for ( ; idx < seq.length; idx++ ) {