NyaomiDEV / Sunamu

Show your currently playing song in a stylish way!
Mozilla Public License 2.0
403 stars 14 forks source link

not showing lyrics with `youtube-music` #69

Open mokurin000 opened 10 months ago

mokurin000 commented 10 months ago

I am on 2.1.0 (official .pacman build) denyList in my configuration is empty

dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep org.mpris.MediaPlayer2
      string "org.mpris.MediaPlayer2.chromium.instance768356"
NyaomiDEV commented 9 months ago

Please post more context. "chromium.instanceXXXX" doesn't tell us as much! Do any other MPRIS controllers see the playing instance. Does it have correct play/pause and seekbar reports?

mokurin000 commented 9 months ago

Please post more context. "chromium.instanceXXXX" doesn't tell us as much! Do any other MPRIS controllers see the playing instance. Does it have correct play/pause and seekbar reports?

oh. sorry for my lack of information I will try enable it's shortcut plugin, which provides their own MPRIS service Right now, without the plugin, it behaves as any other chromium-based app/browser without a custom mpris service I'd know it gives Playing status correctly, but I have no idea if chromium will send seek signal. However, its position call works well, or my waylyrics will not work with chromium instances

mokurin000 commented 9 months ago

Also, chromium's mpris implementation

NyaomiDEV commented 9 months ago

I will try to bisect this myself when I have some time. Are you using plain Chromium or something else?

mokurin000 commented 9 months ago

I will try to bisect this myself when I have some time. Are you using plain Chromium or something else?

I used youtube-music and it's behaviour should be the same with plain Chromium, unless it's Shortcut plugin was enabled

mokurin000 commented 9 months ago

https://github.com/th-ch/youtube-music/blob/master/src/plugins/shortcuts/mpris.ts I will try to enable shortcut and test if Sunamu will works fine