03-27-2023 06:05 PM - edited 03-27-2023 06:18 PM
I use "MozTogglePictureInPicture" event to catch if a user opens PiP window.
But this event doesn't trigger when user closes the PiP window and there is no document.pictureInPictureElement.
How can I detect when a user closes their PiP window?