Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to open multiple pip windows? #27

Closed
amoghasgekar opened this issue Feb 23, 2023 · 4 comments
Closed

Possible to open multiple pip windows? #27

amoghasgekar opened this issue Feb 23, 2023 · 4 comments

Comments

@amoghasgekar
Copy link

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
Copy link
Contributor

tomayac commented Feb 23, 2023

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
Copy link
Author

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
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants