Bug 202756
| Summary: | [GTK][GStreamer][Picture-in-Picture Web API] Add platform support for PiP | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos Bentzen <cadubentzen> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | cadubentzen, calvaris, cgarcia, dpino, magomez, pnormand, tsaunier, zan |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Carlos Bentzen
The PiP Web API is in development in bug 182688.
It is currently relying on the webkitSetPresentationMode() API for Cocoa backends, but support for it could be added for the GStreamer backend.
Do the WebKitGTK developers welcome this feature?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Philippe Normand
Hey Carlos!
Yeah it would be great to have this supported. The pipeline's video-sink bin would probably need an output-selector with 2 downstream branches, one for the existing video sink and one that would, maybe?, render to a separate GTK window?
Would you work on this?
Carlos Bentzen
(In reply to Philippe Normand from comment #1)
> Hey Carlos!
>
> Yeah it would be great to have this supported.
Great to hear! :)
> The pipeline's video-sink bin would probably need an output-selector with 2 downstream branches, one for
> the existing video sink and one that would, maybe?, render to a separate GTK
> window?
Seems like a plan.
Most browser implementations only allow the creation of one PIP window, because of platform limitations (https://w3c.github.io/picture-in-picture/#one-pip-window)... Is that desirable for WebKitGTK too?
I'm wondering that because, if so, the GTK window creation maybe would need to be in the UIProcess? So in this case we'd need to figure out a path for zero-copy (if that is possible)?
Just some early thoughts. I might be totally wrong there.
>
> Would you work on this?
Yeah. I intend to start experimenting on it soon :)
Xabier Rodríguez Calvar
(In reply to Carlos Eduardo Ramalho from comment #2)
> Most browser implementations only allow the creation of one PIP window,
> because of platform limitations
> (https://w3c.github.io/picture-in-picture/#one-pip-window)... Is that
> desirable for WebKitGTK too?
>
> I'm wondering that because, if so, the GTK window creation maybe would need
> to be in the UIProcess? So in this case we'd need to figure out a path for
> zero-copy (if that is possible)?
>
> Just some early thoughts. I might be totally wrong there.
Zan and Miguel can have some good thoughts about rendering arch.
Philippe Normand
(In reply to Carlos Eduardo Ramalho from comment #2)
> > Would you work on this?
>
> Yeah. I intend to start experimenting on it soon :)
Have you managed to get started?
Carlos Bentzen
(In reply to Philippe Normand from comment #4)
> (In reply to Carlos Eduardo Ramalho from comment #2)
>
> > > Would you work on this?
> >
> > Yeah. I intend to start experimenting on it soon :)
>
> Have you managed to get started?
No. Do you want to take over?
Philippe Normand
My list is too big currently. I'll ping here again if/when I manage to shrink it a bit :)
Philippe Normand
*** Bug 211569 has been marked as a duplicate of this bug. ***
Philippe Normand
I've started some work on this.