r40938 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40937‎ | r40938 | r40939 >
Date:21:47, 16 September 2008
Author:dale
Status:old
Tags:
Comment:
minor annimation update fix
Modified paths:
  • /trunk/extensions/MetavidWiki/skins/mv_embed/mv_playlist.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/skins/mv_embed/mv_playlist.js
@@ -415,7 +415,7 @@
416416 var clip_float_sec=0;
417417 for(var i in this.default_track.clips){
418418 var clip = this.default_track.clips[i];
419 - if( (clip.getDuration() + pl_sum_time) > float_sec ){
 419+ if( (clip.getDuration() + pl_sum_time) >= float_sec ){
420420 if(this.cur_clip.id != clip.id){
421421 $j('#clipDesc_'+this.cur_clip.id).hide();
422422 this.cur_clip = clip;
@@ -430,7 +430,7 @@
431431 this.cur_clip.embed.start_offset=this.cur_clip.embed.media_element.selected_source.start_offset;
432432
433433 //render effects ontop:
434 - //issue thumbnail update request: (if plugin supports it will render out
 434+ //issue thumbnail update request: (if plugin supports it will render out frame)
435435 this.cur_clip.embed.updateTimeThumb(perc);
436436
437437 this.cur_clip.embed.currentTime = (float_sec -pl_sum_time)+this.cur_clip.embed.start_offset ;
@@ -1537,7 +1537,7 @@
15381538 //handles the rendering of overlays loaind of future clips (if nessesary)
15391539 //@@todo could be lazy loaded if nessesary
15401540 mvPlayList.prototype.doSmilActions = function(){
1541 - //js_log('f:doSmilActions');
 1541+ js_log('f:doSmilActions: ' + this.cur_clip.embed.currentTime);
15421542 var offSetTime = 0; //offset time should let us start a transition later on if we have to.
15431543 _pClip = this.cur_clip;
15441544
@@ -1592,7 +1592,7 @@
15931593 //only update if userSlide (otherwise hanndled by internal transition timer)
15941594 if(this.userSlide){
15951595 js_log('user slide update transition state:'+ _pClip.embed.currentTime );
1596 - _pClip.transIn.run_animation();
 1596+ mvTransLib.doUpdate(_pClip.transIn, (_pClip.embed.currentTime / _pClip.dur) );
15971597 }
15981598 }else if(_pClip.transIn.animation_state==2){
15991599 //close up shop: