r51778 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51777‎ | r51778 | r51779 >
Date:02:33, 12 June 2009
Author:dale
Status:deferred
Tags:
Comment:
sequencer updates
Modified paths:
  • /branches/new-upload/phase3/js2/mwEmbed/example_usage/SequencerPlayer_Simple.html (modified) (history)
  • /branches/new-upload/phase3/js2/mwEmbed/libAddMedia/seqRemoteSearchDriver.js (modified) (history)
  • /branches/new-upload/phase3/js2/mwEmbed/libSequencer/mvSequencer.js (modified) (history)

Diff [purge]

Index: branches/new-upload/phase3/js2/mwEmbed/example_usage/SequencerPlayer_Simple.html
@@ -20,7 +20,7 @@
2121 The first video fades up from green when it starts to play,
2222 and the second video fades down to green when it ends.
2323 When the first video stops and the second video starts,
24 - though, the two videos crossfade into each other<br><iframe width="500" height="200" src="sample_smil.xml">sample smil here</iframe><br />
 24+ though, the two videos crossfade into each other<br><iframe width="500" height="200" src="media/sample_smil.xml">sample smil here</iframe><br />
2525 &lt;-- code used: <br />
2626 <pre> &lt;playlist id=&quot;smil_pl&quot; src=&quot;media/sample_smil.xml&quot;&gt;</pre>
2727
Index: branches/new-upload/phase3/js2/mwEmbed/libAddMedia/seqRemoteSearchDriver.js
@@ -12,7 +12,8 @@
1313 var iObj = {
1414 'target_container' : '#cliplib_ic',
1515 'local_wiki_api_url': this_seq.getLocalApiUrl(),
16 - 'instance_name' : this_seq.instance_name + '.mySearch'
 16+ 'instance_name' : this_seq.instance_name + '.mySearch',
 17+ 'default_query' : this_seq.plObj.title
1718 }
1819 //inherit the remoteSearchDriver properties:n
1920 var tmpRSD = new remoteSearchDriver( iObj );
@@ -33,10 +34,24 @@
3435 //add an additional drag binding
3536 var source_pos = null;
3637 var insert_key='na';
37 - var clip_key ='';
38 -
 38+ var clip_key ='';
 39+ var clipTarget = '';
 40+ $j( '.mv_clip_box_result' ).draggable({
 41+ helper:'clone',
 42+ opacity: 0.7,
 43+ revert:'invalid',
 44+ start: function(event, ui) {
 45+ //create a clip target (just a temporary image representation .. will swap and import after drag)
 46+ _this.pSeq.addClips({
 47+ 'type':'image/jpeg'
 48+ })
 49+ },
 50+ drag:function(e, ui){
 51+ insert_key = _this.pSeq.clipDragUpdate(ui, this);
 52+ }
 53+ });
3954 //@@todo support multiple target tracks
40 - $j( '.mv_clip_box_result' ).draggable({
 55+ /*$j( '.mv_clip_box_result' ).draggable({
4156 start:function(){
4257 source_pos = $j(this).offset();
4358 js_log("update pos of: #clone_" + this.id + ' to l:' +source_pos.left + ' t:' + source_pos.top );
@@ -56,12 +71,10 @@
5772 drag:function(e, ui){
5873 insert_key = _this.pSeq.clipDragUpdate(ui, this);
5974 },
60 - //do contain:
61 - containment:'#container_track_0',
6275 stop:function(){
6376 js_log('done drag insert after: ' + insert_key);
6477 }
65 - });
 78+ }); */
6679
6780 },
6881 resourceEdit:function(rObj, rsdElement){
Index: branches/new-upload/phase3/js2/mwEmbed/libSequencer/mvSequencer.js
@@ -222,9 +222,7 @@
223223 //add the container divs (with basic layout ~universal~
224224 $j(this.target_sequence_container).html(''+
225225 '<div id="'+this.video_container_id+'" style="position:absolute;right:0px;top:0px;' +
226 - 'width:'+this.video_width+'px;height:'+this.video_height+'px;border:solid thin blue;background:#FFF;font-color:black;"/>'+
227 - '<div id="'+this.sequence_tools_id+'" style="position:absolute;' +
228 - 'left:0px;right:'+(this.video_width+15)+'px;top:0px;height:'+(this.video_height+23)+'px;"/>'+
 226+ 'width:'+this.video_width+'px;height:'+this.video_height+'px;border:solid thin blue;background:#FFF;font-color:black;"/>'+
229227 '<div id="'+this.timeline_id+'" class="ui-widget ui-widget-content ui-corner-all" style="position:absolute;' +
230228 'left:0px;right:0px;top:'+(this.video_height+34)+'px;bottom:35px;overflow:auto;">'+
231229 gM('loading_timeline')+ '</div>'+
@@ -232,7 +230,9 @@
233231 '<div class="seq_save_cancel" style="position:absolute;'+
234232 'left:5px;bottom:0px;height:25px;">'+
235233 gM('loading_user_rights') +
236 - '</div>'
 234+ '</div>'+
 235+ '<div id="'+this.sequence_tools_id+'" style="position:absolute;' +
 236+ 'left:0px;right:'+(this.video_width+15)+'px;top:0px;height:'+(this.video_height+23)+'px;"/>'
237237 );
238238
239239 /*js_log('set: '+this.target_sequence_container + ' html to:'+ "\n"+
@@ -808,8 +808,8 @@
809809 if( parseUri( document.URL ).host != parseUri( this_seq.plObj.interface_url ).host ){
810810 js_log('error: presently we can\'t copy clips across domains');
811811 }else{
812 - if( this_seq.clipboardEditToken ){
813 - //@@todo we need a api entry point to store a "clipboard"
 812+ //@@we need a api entry point to store a "clipboard"
 813+ if( this_seq.clipboardEditToken && this_seq.plObj.interface_url ){
814814 var req_url = this_seq.plObj.interface_url.replace(/api.php/, 'index.php') + '?action=ajax&rs=mv_seqtool_clipboard&rsargs[]=copy';
815815 $j.ajax({
816816 type: "POST",
@@ -848,7 +848,11 @@
849849 //add a single or set of clips
850850 //to a given position and track_inx
851851 addClips:function( clipSet, before_clip_pos, track_inx){
852 - this_seq = this;
 852+ this_seq = this;
 853+ if(!track_inx)
 854+ track_inx = this.plObj.default_track
 855+ if(!before_clip_pos)
 856+ before_clip_pos=
853857 js_log("seq: add clip: at: "+ before_clip_pos + ' in track: ' + track_inx);
854858 var cur_pos = before_clip_pos;
855859 js_log('paste clip before_clip_pos: ' + before_clip_pos);

Status & tagging log