vixalien / muzika

Elegant music streaming app
GNU General Public License v3.0
253 stars 15 forks source link

Doesn't work with Playerctl #120

Closed ghost closed 6 months ago

ghost commented 6 months ago

Expected behavior: playerctl next skips to the next song

Current behavior: nothing happens, but dbus-send --print-reply --dest=org.mpris.MediaPlayer2.Muzika /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next works.

https://wiki.archlinux.org/title/MPRIS

ghost commented 6 months ago

Might be an issue with playerctl, not sure

vixalien commented 6 months ago

Sounds like MPRIS works, but playerctl does not.

It might be an issue with that 3rd party software.

On Sat, 16 Mar 2024, 04:05 890m319as, @.***> wrote:

Expected behavior: playerctl next skips to the next song

Current behavior: nothing happens, but dbus-send --print-reply --dest=org.mpris.MediaPlayer2.Muzika /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next works.

https://wiki.archlinux.org/title/MPRIS

— Reply to this email directly, view it on GitHub https://github.com/vixalien/muzika/issues/120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB5FCJQ2T2UM475FJIXY5TYYOSGFAVCNFSM6AAAAABEY5KKU6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DSNRZGU4TKMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ghost commented 6 months ago

I tried reading the code for playerctl, but it was unreadable to me. I couldn't figure out what it was doing to get a list of all known players, so I assume it's just an issue with the software. It appears other people have had the same issue, but with Spotify, and just used raw dbus, and it worked. https://gitlab.com/axdsop/nix-dotfiles/tree/master/Configs/polybar/scripts/mpris_player