playerctl icon indicating copy to clipboard operation
playerctl copied to clipboard

bug: broken duration / position; shorts break new youtube player chromium and firefox based.

Open LurkAndLoiter opened this issue 3 months ago • 1 comments

Upstream bug. MPRIS and thus playerctl affected

The player I am using is librewolf and brave-beta.

New youtube player fails to trigger a new duration on media change after initializing a short. Any seeking or loop will force an update but left static even changing videos will retain the original position/duration data.

Based off this chromium code media_position.cc It appears position reset is also attached to the duration update thus I believe solving duration fixes position. I tried looking beyond that but I'm just wholly out of my element on this code base and CPP.

I saw no issues opened to chromium or firefox and quite frankly have no idea where to post this so I'm passing the buck to someone I think might know. Sorry for that inconvenience.

Overview of gif:

  1. short 00:13
  2. short 00:30 (keeps position/duration of 1st short)
  3. video 22:54 (new position keeps duration of 2nd short)
  4. video 00:09 (keeps position/duration of 2nd short)
  5. replay 00:09 (updates position/duration to current video)
  6. video 2:00:34 (keeps position/duration of replay) position/duration information is confirmed to align with mpris dbus values

Image

LurkAndLoiter avatar Sep 11 '25 18:09 LurkAndLoiter

I made a browser/hosts workaround here.

Tested on:

  • Google Chrome
  • Chromium
  • Brave
  • Vivaldi
  • Microsoft Edge
  • Opera
  • Firefox
  • Librewolf
  • Zen

Inspired by: youtube-mpris-fix by @d1BG

LurkAndLoiter avatar Oct 23 '25 14:10 LurkAndLoiter