Closed amoghasgekar closed 9 months ago
The spec certainly allows it, and browser makers can decide what to do. As far as I can tell, the current implementation I could test in Chrome on macOS allows just one PiP window at a given time.
You're right! Thanks for catching that, just submitted feedback to the chrome team. I'm on Chrome on Linux and that's where I see a single pip window.
This makes me a little worried about the stability of this function. The current implementation supports only one pip window. If another website (that not under my control) also uses this feature, then my pip window will be forced to close.
Closing as the spec does allow this, so it's more of a feature request for Chrome's implementation. That request is tracked at https://issues.chromium.org/issues/40891176
I noticed that every call to the window.documentPictureInPicture.requestWindow creates a new pip window but destroys the previous one. Is that intentional? Is there a way to create multiple windows?