src/js/main.js
branchpopcorn-port
changeset 453 8568e47379a2
parent 358 430c1a7a09de
child 498 cf2a0505cadc
equal deleted inserted replaced
452:35495f156c41 453:8568e47379a2
     5 	var __IriSP = IriSP; /* for backward compatibility */
     5 	var __IriSP = IriSP; /* for backward compatibility */
     6 }
     6 }
     7 
     7 
     8 /* crap code will be the first against the wall when the
     8 /* crap code will be the first against the wall when the
     9    revolution comes */
     9    revolution comes */
    10 IriSP.loadLibs = function( libs, customCssPath, callback ) {
    10 IriSP.loadLibs = function( libs, customCssPath, metadata_url, callback ) {
    11 		// Localize jQuery variable
    11 		// Localize jQuery variable
    12 		IriSP.jQuery = null;
    12 		IriSP.jQuery = null;
    13 
    13 
    14 		/* FIXME : to refactor using popcorn.getscript ? */
    14 		/* FIXME : to refactor using popcorn.getscript ? */
    15 		/******** Load jQuery if not present *********/
    15 		/******** Load jQuery if not present *********/
   115 				// to see dynamicly loaded css on IE
   115 				// to see dynamicly loaded css on IE
   116 				if ( $.browser.msie ) {
   116 				if ( $.browser.msie ) {
   117 					$( '.dynamic_css' ).clone().appendTo( 'head' );
   117 					$( '.dynamic_css' ).clone().appendTo( 'head' );
   118 				}
   118 				}
   119         
   119         
   120         callback();
   120         IriSP.setupDataLoader();
       
   121         IriSP.__dataloader.get(metadata_url, 
       
   122             function(data) {
       
   123               /* save the data so that we could re-use it to
       
   124                  configure the video
       
   125               */
       
   126               IriSP.__jsonMetadata = data;
       
   127               callback.call(window) });
   121       });
   128       });
   122     }
   129     }
   123 };
   130 };
   124 
   131