mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-13 13:49:19 +08:00
make pip button static
This commit is contained in:
parent
cf9244b472
commit
f62100cd0d
@ -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">
|
||||
|
@ -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
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user