mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
FS-7509: try to make full screen mode universal
This commit is contained in:
committed by
Michael Jerris
parent
43eb323631
commit
43de3e14eb
@@ -519,18 +519,30 @@ $("#vmutebtn").click(function() {
|
||||
|
||||
var is_full = false;
|
||||
var usrto;
|
||||
var rs;
|
||||
function noop() { return; }
|
||||
|
||||
function on_full(which)
|
||||
{
|
||||
is_full = which;
|
||||
if (is_full) {
|
||||
clearTimeout(rs);
|
||||
$("#usr2").hide();
|
||||
rs = setTimeout(function() {
|
||||
$("#webcam").width($(window).width());
|
||||
$("#webcam").height($(window).height());
|
||||
}, 1500);
|
||||
$("#rows").css("position", "absolute").css("z-index", "2");
|
||||
$("#fullbtn").text("Exit Full Screen");
|
||||
} else {
|
||||
$("#rows").css("position", "static").css("z-index", "2");
|
||||
$("#fullbtn").text("Enter Full Screen");
|
||||
clearTimeout(usrto);
|
||||
clearTimeout(usrto);
|
||||
clearTimeout(rs);
|
||||
rs = setTimeout(function() {
|
||||
$("#webcam").width("100%");
|
||||
$("#webcam").height("100%");
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1226,12 +1238,10 @@ $(document).ready(function() {
|
||||
$("#usr2").hide();
|
||||
|
||||
$("#usrctl").mouseover(function() {
|
||||
$("#mod2").hide();
|
||||
$("#usr2").show();
|
||||
});
|
||||
|
||||
$("#usr2").mouseover(function() {
|
||||
$("#mod2").hide();
|
||||
clearTimeout(usrto);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user