From 5c8379f19ce2403c08a7d29b895e8a2db00c36bb Mon Sep 17 00:00:00 2001 From: Pranav M S Date: Fri, 24 Apr 2020 19:26:58 +0530 Subject: [PATCH] Repair exitFullScreen()" --- dev/getHTMLMediaElement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/getHTMLMediaElement.js b/dev/getHTMLMediaElement.js index 1cafcede..9186b896 100755 --- a/dev/getHTMLMediaElement.js +++ b/dev/getHTMLMediaElement.js @@ -197,7 +197,7 @@ function getHTMLMediaElement(mediaElement, config) { function exitFullScreen() { if (document.fullscreen) { - document.cancelFullScreen(); + document.exitFullscreen(); } if (document.mozFullScreen) { @@ -205,7 +205,7 @@ function getHTMLMediaElement(mediaElement, config) { } if (document.webkitIsFullScreen) { - document.webkitCancelFullScreen(); + document.webkitExitFullscreen(); } }