fixed video overlay size
This commit is contained in:
@@ -47,10 +47,12 @@
|
|||||||
var winheight = $(window).height();
|
var winheight = $(window).height();
|
||||||
console.log('win :'+winwidth+' | '+winheight);
|
console.log('win :'+winwidth+' | '+winheight);
|
||||||
|
|
||||||
if (winwidth > winheight) {
|
if (winwidth < winheight) {
|
||||||
|
console.log("Width target");
|
||||||
var w = winwidth*0.9;
|
var w = winwidth*0.9;
|
||||||
var h = w*(360/640);
|
var h = w*(360/640);
|
||||||
}else{
|
}else{
|
||||||
|
console.log("height target");
|
||||||
var h = winheight*0.9;
|
var h = winheight*0.9;
|
||||||
var w = h*(640/360);
|
var w = h*(640/360);
|
||||||
}
|
}
|
||||||
@@ -67,9 +69,17 @@
|
|||||||
borderSize:'0',
|
borderSize:'0',
|
||||||
width:w,
|
width:w,
|
||||||
height:h,
|
height:h,
|
||||||
windowSourceID:"#videoframe"
|
windowSourceID:"#videoframe",
|
||||||
|
functionCallOnClose:true,
|
||||||
|
functionCallAfterClose:function(){
|
||||||
|
$('#videoframe').remove();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
|
function onCloseOverlay(){
|
||||||
|
$('#videoframe').remove();
|
||||||
|
};
|
||||||
|
|
||||||
init();
|
init();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user