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

Revisit Multiple PIP, PIP custom size and placement, PIP permanence #69

Open
Zahir-Khan opened this issue May 15, 2024 · 4 comments
Open

Comments

@Zahir-Khan
Copy link

Chrome API has been updated with latest PIP feature. Here is the link
https://developer.chrome.com/docs/web-platform/document-picture-in-picture

I also understand the hesitancy to write site specific code but I think giving us the option to customize under the extension settings for things like most commonly used websites like YouTube would be great.

Also I do think it is possible to give further option of writing scripts for power users so we can turn the entire webpage or specific div element into a PIP or multiple PIP would be great. (Lots of work ik and maybe deserves a dedicated issue or I will just fork this when time permits)

Closed and Open Issues that are related and can be addressed with the updated API
#23
#26
#28
#38
#51
#53

@dralletje
Copy link
Owner

Thank you so much for bringing this to my attention: this is amazing!!

I need to experiment with this first, I hope I can recreate it in a way that works smoothly for every website.

If it works smoothly I will just replace the current PIP button with this feature.

I don't see anything in the article about multiple PIP windows? Can you point me to where that is mentioned/a demo?

@Zahir-Khan
Copy link
Author

Since the document PIP is linked to the tab that opened it you are able to open multiple PIP. One for each browser tab. Documentation doesn't explicitly state this but it appears that it is possible given how the API is structured.

https://developer.mozilla.org/en-US/docs/Web/API/Document_Picture-in-Picture_API#browser_compatibility

@dralletje
Copy link
Owner

Did you try it out? On Chrome for me it is not possible to open multiple.

@dralletje
Copy link
Owner

Also I've been trying to get this to work for generically for websites, but because it is (more than with normal fullscreen-faking) a lot of moving around of DOM nodes, it does break most sites consistently 😱

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

2 participants