Closed Bug 1827311 Opened 2 years ago Closed 2 years ago

MPRIS metadata is not updated correctly on YouTube

Categories

(Core :: Audio/Video: Playback, defect, P3)

Firefox 111
defect

Tracking

()

RESOLVED DUPLICATE of bug 1696731

People

(Reporter: dough.mean, Unassigned)

Details

Steps to reproduce:

  1. Run playerctl --follow metadata in a terminal (https://github.com/altdesktop/playerctl)
  2. Open https://www.youtube.com
  3. Hover over the video thumbnails to trigger the preview player
  4. Click on any video and play it
  5. Press the browser's back button
  6. Hover over the thumbnails again to trigger the preview player
  7. Close the YouTube tab

Actual results:

In step 5, Firefox fails to update the metadata, which makes it as if the video from the previous step is still playing.
In step 6, simply hovering over the video thumbnails will update the metadata according to the video that was hovered. The metadata persists even when you move the cursor to a non-thumbnail area. This does not happen on step 3.
In step 7, Firefox finally clears the metadata.

Expected results:

In step 5, Firefox should update the metadata to show that no videos are playing.
In step 6, hovering over the thumbnails should not update the metadata.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

Thanks for the very clear reproduction steps, I can reproduce locally.

Alastor, maybe it's just youtube not calling the right API at the right time? Enabling the right log module should make this clear?

Flags: needinfo?(alwu)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S4
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1696731
Flags: needinfo?(alwu)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.