src/js/init.js
branchpopcorn-port
changeset 402 6148fb647f46
parent 315 4466bf448426
child 404 6c4e5b2fee8c
child 418 06d2aa32c5f4
--- a/src/js/init.js	Mon Dec 05 11:28:43 2011 +0100
+++ b/src/js/init.js	Mon Dec 05 14:37:05 2011 +0100
@@ -16,6 +16,13 @@
       case "html5":
            var tmpId = Popcorn.guid("video"); 
            IriSP.jQuery("#" + containerDiv).append("<video src='" + options.file + "' id='" + tmpId + "'></video>");
+
+           if (options.hasOwnProperty("width"))
+             IriSP.jQuery("#" + containerDiv).css("width", options.width);
+           
+           if (options.hasOwnProperty("height"))
+             IriSP.jQuery("#" + containerDiv).css("height", options.height);
+
            pop = Popcorn("#" + tmpId).mediafragment({start : 0});
         break;