altdesktop / playerctl

🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
GNU Lesser General Public License v3.0
2.42k stars 79 forks source link

playerctld seems to ignore firefox in favor of mpv #284

Open vbgfhfngfdtyreyt opened 1 year ago

vbgfhfngfdtyreyt commented 1 year ago

OS is Debian 10. firefox version is latest from Debian repos, 91.13.0esr. mpv version is latest from Debian repos, 0.29.1-1. playerctl / playerctld version is 2.4.1.

How to reproduce: playerctld is started with playerctld daemon. mpv is started and is paused or playing (the problem occurs either way). I then open firefox and navigate to youtube. I start a youtube video playing, this is the audio/video "last touched".

Doing either: playerctl --player=playerctld play-pause or playerctl play-pause only affects mpv, firefox unfortunately seems "low priority", despite being "last touched".

playerctl -l shows both firefox and mpv, but mpv is at the top of the list. (I'm assuming the list is in descending order of priority but I am just guessing)

playerctl --player=firefox play-pause works as expected, it can play and pause youtube videos. The issue of course is that I need the "last touched" functionality that playerctld provides (across firefox, mpv, etc, etc), which is currently not working.

It seems like there is some sort of issue with playerctld prioritizing mpv over firefox in all circumstances, and I can't figure out what is causing it.

vbgfhfngfdtyreyt commented 1 year ago

Recently did install of Debian 12, and this issue or similar seems to persist.

Doing playerctl --player=playerctld play-pause seem to work for "last touched" most of the time, but not all of the time, regardless of if the player is mpv, vlc, or firefox.

It seems like something is not correctly determining "last touched".

Is there anything I can do to help debug this?