Closed Bug 1677080 Opened 4 years ago Closed 1 year ago

Fullscreen PiP window is affected by switching video source

Categories

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

Desktop
All
defect
Points:
5

Tracking

()

VERIFIED FIXED
112 Branch
Tracking Status
firefox112 --- verified
firefox113 --- verified

People

(Reporter: andreio, Assigned: niklas)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [fidefe-MR1-2022])

Attachments

(1 file, 1 obsolete file)

STR (makes more sense for 2 monitor setups but I think it can be reproduced everywhere):

  1. Play in Fullscreen PiP mode a video from youtube
  2. Switch to a higher quality mode as the video plays
    The PiP window is affected and is no longer full screen (now covers only 3/4 of the screen) but still "thinks" it's in fullscreen mode (if you double click it you see how it goes back to the initial size as if existing full screen mode).

Tried on latest m-c central, OSX

Assignee: nobody → baumga91
Severity: -- → S3
OS: Unspecified → All
Priority: -- → P1
Hardware: Unspecified → Desktop
Blocks: 1685549
No longer blocks: 1662870
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/50141dc32966
PiP stays in fullscreen when changing src while in fullscreen. r=mconley

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:baumga91, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(baumga91)

Latest Nightly 87.0a1 (2021-02-19), Win 10 64-bit, I have a laptop and an external monitor attached to it:

  1. Open youtube.com and play in fullscreen PiP a video on the external monitor - image is fullscreen
  2. Change video quality - Windows taskbar appears
  3. Close PiP window and reopen it - the image will cover 3/4 of the screen. Double click on it will place it correctly on the screen.

This also happens if the PiP window is closed for the first video and the PiP window is opened for another video.

Tentatively unassigning this one in case someone wants to try driving it through.

Assignee: baumga91 → nobody
Assignee: nobody → katkoor2
Status: NEW → ASSIGNED

This bug also affects single display setups. Here is how to reproduce it:

  1. Start any Youtube video in high resolution
  2. Paste this code in the console to change the resolution to low after 10 seconds:
setTimeout(function() {
    ytPlayer = document.getElementById("movie_player") || document.getElementsByClassName("html5-video-player")[0];
    ytPlayer.setPlaybackQualityRange('tiny');
}, 10000);
  1. within 10 seconds after running the code above, have the video run in a full-screen PiP window

On Windows, the PiP window now has the same size as the full-screen window but shifted up to show the taskbar. The new window cannot be resized or moved and does not respond to doubleclicking. The only way to regain control is to close PiP.

Due to this bug, watching livestreams where the resolution changes frequently due to buffering is cumbersome.

Assignee: katkoor2 → nbaumgardner
Attachment #9190208 - Attachment description: Bug 1677080 - PiP stays in fullscreen when changing src while in fullscreen. r?mconley → WIP: Bug 1677080 - PiP stays in fullscreen when changing src while in fullscreen. r=mconley!
Component: Video/Audio Controls → Picture-in-Picture
Version: unspecified → Trunk
Whiteboard: [livestream-and-gaming]
Priority: P1 → P2
Whiteboard: [livestream-and-gaming] → [fidefe-MR1-2022]
Blocks: 1742457
Points: --- → 5
Blocks: 1772335
No longer blocks: 1772335

Redirect needinfos that are pending on an inactive user to the triage owner.
:mconley, since the bug has high priority and recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mconley)
Flags: needinfo?(baumga91)

Passing this needinfo to the right Niklas! :-)

Flags: needinfo?(mconley) → needinfo?(nbaumgardner)

Thanks Gijs.

I am still working on this bug

Flags: needinfo?(nbaumgardner)

This is happening using Nightly 109.0a1 20221211092251 on Windows 11

STR:

  1. Open a video on YouTube.
  2. Add another video to the queue
  3. Open the first video on PiP mode
  4. Move the scrubber to almost the end (media.videocontrols.picture-in-picture.improved-video-controls.enabled pref enabled)
  5. Double click to fullscreen
  6. Wait for the next video start.

The video goes out of fullscreen mode and the Windows taskbar appears. Double click it and the video goes fullscreen again, another double click and the PiP fills the whole window, it gets almost fullscreen, and I have to resize it to be fit to use.

The video on PiP mode should remain playing on fullscreen in a queue. And should behave as expected when exit fullscreen.

Attachment #9315644 - Attachment description: WIP: Bug 1677080 - Keep PiP in fullscreen on src change. r=mconley,cmkm,#pip-reviewers → Bug 1677080 - Keep PiP in fullscreen on src change. r=mconley,cmkm,#pip-reviewers
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/202bf221326b
Keep PiP in fullscreen on src change. r=pip-reviewers,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Duplicate of this bug: 1819705
Flags: qe-verify+

Reprooducible on a 2023-02-14 Nightly build on Windows 10.
Verified as fixed on Firefox 112.0b5(build ID: 20230321175953) and Nightly 113.0a1(build ID: 20230322211554) on Windows 10, macOS 12, Ubuntu 22.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Attachment #9190208 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: