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 //