--- 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;