.appendTo(widget.$controls);
$formats = $('.ui-nsvideo-formats', $formats[0]);
$.each(widget.options.src, function(index, value) {
.appendTo(widget.$controls);
$formats = $('.ui-nsvideo-formats', $formats[0]);
$.each(widget.options.src, function(index, value) {
- id = widget.element.attr('id') + '-format-' + index;
- definition = value.res.substring(value.res.indexOf('x')+1)+'p';
+ var id = widget.element.attr('id') + '-format-' + index;
+ var definition = value.res.substring(value.res.indexOf('x')+1)+'p';
$('<input type="radio" id="' + id + '" name="format" />')
.appendTo($formats)
.attr('checked', (index == widget.options.srcIndex))
$('<input type="radio" id="' + id + '" name="format" />')
.appendTo($formats)
.attr('checked', (index == widget.options.srcIndex))
if (widget.$video.width() < 640)
{
widget.element.css('width',
if (widget.$video.width() < 640)
{
widget.element.css('width',
widget.$video.css('left',
Math.round(widget.$videoContainer.width()/2
- widget.$video.width()/2)
widget.$video.css('left',
Math.round(widget.$videoContainer.width()/2
- widget.$video.width()/2)