Picture-in-Picture background always black |
||
Issue descriptionWhen one PiPs a transparent video, the background is black regardless of the color of the originating site's background. Ideally, I believe these should match instead. To repro this, PiP the MediaStream video here. The background of the site is white, but when PiPed, the PiP background is black. https://beaufortfrancois.github.io/sandbox/media/picture-in-picture-playground The reason why the background is always black is because of this line https://cs.chromium.org/chromium/src/chrome/browser/ui/views/overlay/overlay_window_views.cc?rcl=4667a219b729a7e3cb1dc6b31d3f5ca024715dd9&l=269
,
Oct 26
We could default to making it transparent if the video is transparent?
,
Nov 1
I think a black background is the right thing to do for Picture-in-Picture. The use case of transparent videos in Picture-in-Picture is rare enough and handling this correctly would be very complex. |
||
►
Sign in to add a comment |
||
Comment 1 by fbeaufort@chromium.org
, Oct 26