If no non-overlapping areas can be found on the screen, offset PiP player windows from one another to avoid full overlaps
Categories
(Toolkit :: Picture-in-Picture, enhancement, P3)
Tracking
()
People
(Reporter: mconley, Unassigned)
References
Details
This was suggested to me during a livestream. Bug 1678390 makes it easier for Firefox to lay out multiple PiP player windows so that they don't overlap. The algorithm it uses is to look at existing windows and to find available rectangles mounted on the edges of the existing player windows.
The failure case is to just open the player window at the default coordinates (which is either the bottom right corner of the current screen, or the last coordinates that the most recent player window closed at). This is what we currently ship today, but we can probably do better in this failure case - the suggestion was to place the player window slightly offset from one of the overlapping windows, similar to Windows' cascade. That way, we avoid the issue where a player window is fully overlapping another window.
Updated•3 years ago
|
Description
•