src/js/init.js
branchcap-demo
changeset 403 375e8af3c9cd
parent 402 6148fb647f46
child 404 6c4e5b2fee8c
child 418 06d2aa32c5f4
--- a/src/js/init.js	Mon Dec 05 14:34:15 2011 +0100
+++ b/src/js/init.js	Mon Dec 05 14:37:27 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;