mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2025-02-22 16:05:03 +08:00
add alert when pip before connected
This commit is contained in:
parent
2c8ee8d921
commit
b8b25071c8
@ -694,6 +694,9 @@ function togglePictureInPicture() {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
pipVideo.requestPictureInPicture().catch((error) => {
|
pipVideo.requestPictureInPicture().catch((error) => {
|
||||||
|
alert(
|
||||||
|
"You must be connected to another person to endter picture in picture."
|
||||||
|
);
|
||||||
logIt("Error entering pip.");
|
logIt("Error entering pip.");
|
||||||
logIt(error);
|
logIt(error);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user