Closed Bug 1756718 Opened 3 years ago Closed 3 years ago

When showing picture-in-picture player controls, move subtitles up if they would overlap

Categories

(Toolkit :: Picture-in-Picture, defect, P2)

Desktop
All
defect
Points:
3

Tracking

()

VERIFIED FIXED
100 Branch
Tracking Status
firefox100 --- verified

People

(Reporter: Gijs, Assigned: kpatenio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-2022-mr1-pip])

Attachments

(1 file)

Right now the text can overlap with the player controls. It'd be nice if we moved the text up if this were to happen, perhaps with an animation (if the user hasn't enabled reduced motion).

Blocks: 1751505
Severity: -- → S2
Points: --- → 3
Assignee: nobody → kpatenio
Status: NEW → ASSIGNED

Patch is still WIP. Considering that the pip text tracks container and video controls are both managed by different processes and different style sheets, making the text tracks container move to avoid overlap requires passing data from the parent to the child process. (If anyone has ideas for a better solution, I'd love to know).

For now, we try to detect overlap and mouse position over the pip window, and move the text tracks container depending on if we hover on or hover away from the pip window. There is still more work to do including:

  • moving text tracks when video controls are focused on. (ex. keyboard navigation)
  • supporting multiple pip windows. Right now, it only works on one. (I will need to revise my patch a bit)
Priority: -- → P2
Attachment #9265905 - Attachment description: WIP: Bug 1756718 - move pip texttracks when pip player controls appear to avoid overlap. r=#pip-reviewers!,mhowell! → Bug 1756718 - move pip texttracks when pip player controls appear to avoid overlap. r=#pip-reviewers!,mhowell!
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c679372f01be move pip texttracks when pip player controls appear to avoid overlap. r=mhowell,pip-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch

This fix was verified in the latest Nightly v100.0a1 from 2022-03-14 on Windows 10, Ubuntu 20/22 and Mac OS 12.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: