# HG changeset patch # User hamidouk # Date 1323092225 -3600 # Node ID 6148fb647f464f8d103c74f459a044adde51b93a # Parent d1883378b822da8af15a4ef0953cf74f3c4a45a3 html5 video can now set the height and width of the video. diff -r d1883378b822 -r 6148fb647f46 src/js/init.js --- 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(""); + + 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;