make pip button static

This commit is contained in:
Ian Ramzy 2020-04-03 20:10:15 -04:00
parent cf9244b472
commit f62100cd0d
2 changed files with 10 additions and 9 deletions

View File

@ -103,7 +103,7 @@
>
<i class="fas fa-external-link-alt fa-xs"></i>
</button>
<div class="HoverState" id="pip-text">Enter Picture in Picture</div>
<div class="HoverState" id="pip-text">Toggle Picture in Picture</div>
</div>
<div class="buttonContainer">

View File

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