src/js/main.js
branchpopcorn-port
changeset 453 8568e47379a2
parent 358 430c1a7a09de
child 498 cf2a0505cadc
--- a/src/js/main.js	Tue Dec 13 15:14:15 2011 +0100
+++ b/src/js/main.js	Tue Dec 13 17:31:39 2011 +0100
@@ -7,7 +7,7 @@
 
 /* crap code will be the first against the wall when the
    revolution comes */
-IriSP.loadLibs = function( libs, customCssPath, callback ) {
+IriSP.loadLibs = function( libs, customCssPath, metadata_url, callback ) {
 		// Localize jQuery variable
 		IriSP.jQuery = null;
 
@@ -117,7 +117,14 @@
 					$( '.dynamic_css' ).clone().appendTo( 'head' );
 				}
         
-        callback();
+        IriSP.setupDataLoader();
+        IriSP.__dataloader.get(metadata_url, 
+            function(data) {
+              /* save the data so that we could re-use it to
+                 configure the video
+              */
+              IriSP.__jsonMetadata = data;
+              callback.call(window) });
       });
     }
 };