From 442f9ef1ac6b7b7eb2cdd13434673e1cd0f7758c Mon Sep 17 00:00:00 2001 From: Calin Burloiu Date: Tue, 16 Aug 2011 12:10:44 +0300 Subject: [PATCH] video widget size --- js/jquery.ui.nsvideo.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/js/jquery.ui.nsvideo.js b/js/jquery.ui.nsvideo.js index 0dd9014..6edd92b 100644 --- a/js/jquery.ui.nsvideo.js +++ b/js/jquery.ui.nsvideo.js @@ -17,7 +17,7 @@ $.widget( "ui.nsvideo", { options: { type: 'ns-html5', width: 800, - height: 450, + height: 600, showStatus: true, refreshInterval: 0.1, // seconds autoplay: false @@ -200,11 +200,14 @@ $.widget( "ui.nsvideo", { widget.$videoContainer.html(''); + var width = widget.options.width; + var height = widget.options.height; + // HTML5 if (widget.options.type == 'ns-html5' || widget.options.type == 'html5') { - widget.$video = $('