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
feat: enable picture-in-picture mode for video tags #17686
Conversation
ef2577c
to
1b65f1d
Compare
|
||
#include "chrome/browser/ui/views/overlay/skip_ad_label_button.h" | ||
|
||
-#include "chrome/grit/generated_resources.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anyway we can pull some compiler/ninja voodoo to make this work without a patch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could consider refactoring upstream to make these resources more self-contained?
1b65f1d
to
6229174
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased it and tested locally, approving and requesting a 6-0-x
backport as without it requesting a PiP view crashes
For |
@deepak1556 I want to do that for |
LGTM, Can you fix the conflicts. |
@brenca ping, can you fix the conflicts |
guys, i'm having a bad time trying to add pip in my project. i'm using electron 6.x.x beta15 |
Guys, any updates on this? Would love to see this ported to Electron! |
6229174
to
c04c073
Compare
d8d9b31
to
9c408bd
Compare
af2b350
to
a1d08a8
Compare
a1d08a8
to
7aa14d4
Compare
Release Notes Persisted
|
/trop run backport-to 7-0-x |
The backport process for this PR has been manually initiated, |
I was unable to backport this PR to "7-0-x" cleanly; |
A maintainer has manually backported this PR to "7-0-x", please check out #19914 |
I updated to electron v7, but it doesn't work correctly. Actually it has the feature on video tag controls but when you click on it, it doesn't show anything, I only see something like this. |
Same issue here a few months after @alirezavalizade's comment above. This would be a really nice feature to have. |
Description of Change
This PR enables the picture-in-picture mode already available in
chrome
. This is partly afeat:
, partly afix:
- without these changes, theDOM
reports that PiP mode is available, but no actual window is created for it, and theDOM
APIs return a 0x0 phantom PiP window. With these changes if PiP is disabled with the build flag, theDOM
APIs correctly report that support for this feature is unavailable.The added
//chrome
dependencies are self contained, but there are a couple of extra icons baked into the code when this feature is enabled. I'm happy to explore ways to only include the necessary icons, but we might we might end up with two folders with a smallBUILD.gn
in each that way, and I thought the easier maintainability/readability vs small size increase was worth it.Resolves #17369 and #11582.
Checklist
npm test
passesRelease Notes
Notes: Added support for picture-in-picture mode for video elements.