<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>202756</bug_id>
          
          <creation_ts>2019-10-09 10:08:14 -0700</creation_ts>
          <short_desc>[GTK][GStreamer][Picture-in-Picture Web API] Add platform support for PiP</short_desc>
          <delta_ts>2020-11-15 07:16:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Bentzen">cadubentzen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cadubentzen</cc>
    
    <cc>calvaris</cc>
    
    <cc>cgarcia</cc>
    
    <cc>dpino</cc>
    
    <cc>magomez</cc>
    
    <cc>pnormand</cc>
    
    <cc>tsaunier</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1578276</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Bentzen">cadubentzen</who>
    <bug_when>2019-10-09 10:08:14 -0700</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578282</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-10-09 10:23:33 -0700</bug_when>
    <thetext>Hey Carlos!

Yeah it would be great to have this supported. The pipeline&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578299</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Bentzen">cadubentzen</who>
    <bug_when>2019-10-09 10:54:36 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #1)
&gt; Hey Carlos!
&gt; 
&gt; Yeah it would be great to have this supported.

Great to hear! :)

&gt; The pipeline&apos;s video-sink bin would probably need an output-selector with 2 downstream branches, one for
&gt; the existing video sink and one that would, maybe?, render to a separate GTK
&gt; 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&apos;m wondering that because, if so, the GTK window creation maybe would need to be in the UIProcess? So in this case we&apos;d need to figure out a path for zero-copy (if that is possible)?

Just some early thoughts. I might be totally wrong there.

&gt; 
&gt; Would you work on this?

Yeah. I intend to start experimenting on it soon :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578540</commentid>
    <comment_count>3</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2019-10-10 01:00:54 -0700</bug_when>
    <thetext>(In reply to Carlos Eduardo Ramalho from comment #2)

&gt; Most browser implementations only allow the creation of one PIP window,
&gt; because of platform limitations
&gt; (https://w3c.github.io/picture-in-picture/#one-pip-window)... Is that
&gt; desirable for WebKitGTK too?
&gt; 
&gt; I&apos;m wondering that because, if so, the GTK window creation maybe would need
&gt; to be in the UIProcess? So in this case we&apos;d need to figure out a path for
&gt; zero-copy (if that is possible)?
&gt; 
&gt; Just some early thoughts. I might be totally wrong there.

Zan and Miguel can have some good thoughts about rendering arch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1628625</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-03-11 07:22:51 -0700</bug_when>
    <thetext>(In reply to Carlos Eduardo Ramalho from comment #2)

&gt; &gt; Would you work on this?
&gt; 
&gt; Yeah. I intend to start experimenting on it soon :)

Have you managed to get started?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1628631</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Bentzen">cadubentzen</who>
    <bug_when>2020-03-11 07:37:08 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #4)
&gt; (In reply to Carlos Eduardo Ramalho from comment #2)
&gt; 
&gt; &gt; &gt; Would you work on this?
&gt; &gt; 
&gt; &gt; Yeah. I intend to start experimenting on it soon :)
&gt; 
&gt; Have you managed to get started?

No. Do you want to take over?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1628635</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-03-11 07:43:27 -0700</bug_when>
    <thetext>My list is too big currently. I&apos;ll ping here again if/when I manage to shrink it a bit :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1654430</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-05-20 07:41:34 -0700</bug_when>
    <thetext>*** Bug 211569 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707600</commentid>
    <comment_count>8</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-11-15 07:16:01 -0800</bug_when>
    <thetext>I&apos;ve started some work on this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>