prevent crash on fullscreen, repos local video on fullscreen
This commit is contained in:
parent
255c0dc87f
commit
4c8c7fd37b
|
@ -373,6 +373,7 @@ function windowResized() {
|
|||
//
|
||||
|
||||
function openFullscreen() {
|
||||
try {
|
||||
var elem = document.getElementById("remote-video");
|
||||
if (!isFullscreen) {
|
||||
isFullscreen = true;
|
||||
|
@ -402,6 +403,10 @@ function openFullscreen() {
|
|||
/* IE/Edge */
|
||||
document.msExitFullscreen();
|
||||
}
|
||||
setTimeout(windowResized, 1000);
|
||||
}
|
||||
} catch (e) {
|
||||
logIt(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue