src/js/init.js
branchnih-youtube
changeset 756 f971fb0f2a3e
parent 743 69a9969daa41
child 757 43e261bcd4ce
--- a/src/js/init.js	Tue Jan 31 16:54:08 2012 +0100
+++ b/src/js/init.js	Tue Jan 31 17:22:10 2012 +0100
@@ -106,10 +106,9 @@
           opts.autostart = false;
           templ = "width: {{width}}px; height: {{height}}px;";
           var str = Mustache.to_html(templ, {width: opts.width, height: opts.height});    
-          // Popcorn.youtube wants us to specify the size of the player in the style attribute of its container div.
-          IriSP.jQuery("#" + containerDiv).attr("style", str);
           
-          pop = Popcorn.youtube("#" + containerDiv, opts.video, opts);
+          //pop = Popcorn.youtube("#" + containerDiv, opts.video, opts);
+          pop = new IriSP.PopcornReplacement.youtube(containerDiv, opts);
         break;
         
       case "allocine":