src/js/init.js
branchpopcorn-port
changeset 558 29a370694c53
parent 557 e331072ce8fd
child 577 227d21a90fc5
--- a/src/js/init.js	Mon Jan 02 11:02:38 2012 +0100
+++ b/src/js/init.js	Mon Jan 02 11:46:55 2012 +0100
@@ -45,6 +45,7 @@
       case "jwplayer":
           var opts = IriSP.jQuery.extend({}, options);
           delete opts.container;
+          delete opts.type;
 
           if (options.provider === "rtmp") {
             /* exit if we can't access the metadata */
@@ -66,12 +67,14 @@
           }
 
           if (!options.hasOwnProperty("flashplayer")) {
-            options.flashplayer = IriSP.jwplayer_swf_path;
+            opts.flashplayer = IriSP.jwplayer_swf_path;
           }
 
           if (!options.hasOwnProperty("controlbar.position")) {
-            options["controlbar.position"] = "none";
+            opts["controlbar.position"] = "none";
           }
+
+          console.log(opts);
           pop = IriSP.PopcornReplacement.jwplayer("#" + containerDiv, opts);
         break;