equal
deleted
inserted
replaced
249 |
249 |
250 next = queue[ nextIdx ]; |
250 next = queue[ nextIdx ]; |
251 clip = ioVideos[ nextIdx ]; |
251 clip = ioVideos[ nextIdx ]; |
252 |
252 |
253 // Constrain dimentions |
253 // Constrain dimentions |
|
254 /* |
254 Popcorn.extend( next, { |
255 Popcorn.extend( next, { |
255 width: this.dims.width, |
256 width: this.dims.width, |
256 height: this.dims.height |
257 height: this.dims.height |
257 }); |
258 }); |
|
259 */ |
258 |
260 |
259 $popnext = this.playlist[ nextIdx ]; |
261 $popnext = this.playlist[ nextIdx ]; |
260 $popprev = this.playlist[ fromIdx ]; |
262 $popprev = this.playlist[ fromIdx ]; |
261 |
263 |
262 current.pause(); |
264 current.pause(); |
327 var ret = 0, |
329 var ret = 0, |
328 seq = this.inOuts.ofClips, |
330 seq = this.inOuts.ofClips, |
329 idx = 0; |
331 idx = 0; |
330 |
332 |
331 for ( ; idx < seq.length; idx++ ) { |
333 for ( ; idx < seq.length; idx++ ) { |
|
334 ret += seq[ idx ]["out"] - seq[ idx ]["in"]; |
|
335 } |
|
336 |
|
337 return ret; |
|
338 }, |
|
339 |
|
340 // Returns sum duration for n first videos in sequences |
|
341 durationSeqs: function(n) { |
|
342 |
|
343 var ret = 0, |
|
344 seq = this.inOuts.ofClips, |
|
345 idx = 0; |
|
346 |
|
347 for ( ; idx < n; idx++ ) { |
332 ret += seq[ idx ]["out"] - seq[ idx ]["in"]; |
348 ret += seq[ idx ]["out"] - seq[ idx ]["in"]; |
333 } |
349 } |
334 |
350 |
335 return ret; |
351 return ret; |
336 }, |
352 }, |