From f62100cd0d8975071c7f70a8238f98c7a339046e Mon Sep 17 00:00:00 2001 From: Ian Ramzy Date: Fri, 3 Apr 2020 20:10:15 -0400 Subject: [PATCH] make pip button static --- public/chat.html | 2 +- public/js/chat.js | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/public/chat.html b/public/chat.html index 002c62c..3fb3488 100644 --- a/public/chat.html +++ b/public/chat.html @@ -103,7 +103,7 @@ > -
Enter Picture in Picture
+
Toggle Picture in Picture
diff --git a/public/js/chat.js b/public/js/chat.js index a249dad..77ef012 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -769,14 +769,15 @@ function togglePictureInPicture() { ); } } -//todo handle updating of pip button better -pipVideo.addEventListener("enterpictureinpicture", () => { - $("#pip-text").text("Exit Picture in Picture"); -}); - -pipVideo.addEventListener("leavepictureinpicture", () => { - $("#pip-text").text("Enter Picture in Picture"); -}); +// pipVideo.addEventListener("enterpictureinpicture", () => { +// $("#pip-text").text("Exit Picture in Picture"); +// alert("enter pip"); +// }); +// +// pipVideo.addEventListener("leavepictureinpicture", () => { +// $("#pip-text").text("Enter Picture in Picture"); +// alert("exit pip"); +// }); // //Picture in picture //