WICG / document-picture-in-picture

https://wicg.github.io/document-picture-in-picture/
Other
58 stars 9 forks source link

Possible to open multiple pip windows? #27

Closed amoghasgekar closed 9 months ago

amoghasgekar commented 1 year ago

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?

tomayac commented 1 year 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.

amoghasgekar commented 1 year ago

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.

hanguokai commented 1 year ago

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.

steimelchrome commented 9 months ago

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