https://bugs.kde.org/show_bug.cgi?id=510493

            Bug ID: 510493
           Summary: MPRIS Stop command causes videos to seek to the
                    beginning when kdeconnect is running
    Classification: Plasma
           Product: plasma-browser-integration
      Version First unspecified
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

I'm unsure whether this is a kdeconnect or plasma-browser-integration bug,
since the workaround I found after many months is in plasma's browser
extension.

STEPS TO REPRODUCE
1. Ensure "Media Controls" is enabled in the Plasma Integration browser
extension settings.
2. Play a video in a browser (tested in Chrome up to its latest version) and
pause it anywhere.
3. Leave the video paused and switch to another tab, window or app.
4. After a while, a `Stop` command will be sent to one or multiple videos,
which makes them seek to the beginning. To trigger it manually: `qdbus
org.mpris.MediaPlayer2.plasma-browser-integration /org/mpris/MediaPlayer2
org.mpris.MediaPlayer2.Player.Stop`
```
method call time=1760188679.818057 sender=:1.54 ->
destination=org.mpris.MediaPlayer2.plasma-browser-integration serial=5905
path=/org/mpris/MediaPlayer2; interface=org.mpris.MediaPlayer2.Player;
member=Stop
```

5. Find the originator, which appears to be kdeconnectd: `ps -fp "$(dbus-send
--session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus
org.freedesktop.DBus.GetConnectionUnixProcessID string:":1.54" | grep uint32 |
awk '{print $2}')"`
UID          PID    PPID  C STIME TTY          TIME CMD
daniel      3161    1563  0 09:07 ?        00:00:02 /usr/bin/kdeconnectd

OBSERVED RESULT
The paused videos immediately seek to the beginning, and I usually lose seek
history if I unpause and I'm not fast enough to get back to the tab and refresh
the page, apart from having to constantly refresh my tabs.

EXPECTED RESULT
The videos should remain paused at their current position.

possible workaround: disabling "Media Controls" in the plasma browser extension
options seems to fix it, and controlling the desktop media from kdeconnect on
the phone still works.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.1-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to