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

Document Picture-in-Picture #70

Closed
steimelchrome opened this issue Oct 4, 2022 · 2 comments
Closed

Document Picture-in-Picture #70

steimelchrome opened this issue Oct 4, 2022 · 2 comments

Comments

@steimelchrome
Copy link

Introduction

There currently exists a Web API for putting an HTMLVideoElement into a
Picture-in-Picture window (HTMLVideoElement.requestPictureInPicture()). This
limits a website's ability to provide a custom picture-in-picture experience
(PiP). We want to expand upon that functionality by giving websites the ability
to open a picture-in-picture (i.e., always-on-top) window with a blank document
that can be populated with arbitrary HTMLElements instead of only a single
HTMLVideoElement.

This new window will be much like a blank same-origin window opened via the
existing window.open() API, with some differences:

  • The PiP window will float on top of other windows.
  • The PiP window will never outlive the opening window.
  • The website cannot set the position of the PiP window.
  • The PiP window cannot be navigated (any window.history or window.location
    calls that change to a new document will close the PiP window).
  • The PiP window cannot open more windows.

Read the complete Explainer.

Feedback

I welcome feedback in this thread, but encourage you to file bugs against the Explainer.

@deng4437
Copy link

Zoom Team votes one for this feature as it's definitely a nice-to-have improvement to allow application owner to implement more advanced user experiences based on DOM.

@cwilso
Copy link
Member

cwilso commented Oct 31, 2022

As per previous comment, this is now transferred into WICG: https://github.com/WICG/document-picture-in-picture.

@cwilso cwilso closed this as completed Oct 31, 2022
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

3 participants