FS-7509: exit full screen on hangup

This commit is contained in:
Anthony Minessale 2015-03-05 13:09:31 -06:00 committed by Michael Jerris
parent 43de3e14eb
commit 5dc3c8e5ad

View File

@ -505,6 +505,7 @@ $(".dtmf").click(function(e) {
}); });
$("#hupbtn").click(function() { $("#hupbtn").click(function() {
exit_full_screen();
verto.hangup(); verto.hangup();
cur_call = null; cur_call = null;
}); });
@ -558,17 +559,21 @@ $(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange MSFu
}); });
function exit_full_screen()
{
if (document.webkitFullscreenEnabled) {
document.webkitExitFullscreen();
} else if (document.mozFullScreenEnabled) {
document.mozExitFullScreen();
}
}
$("#fullbtn").click(function() { $("#fullbtn").click(function() {
if (!is_full) { if (!is_full) {
full_screen("fs"); full_screen("fs");
} else { } else {
if (document.webkitFullscreenEnabled) { exit_full_screen();
document.webkitExitFullscreen();
} else if (document.mozFullScreenEnabled) {
document.mozExitFullScreen();
}
} }