current-song2 icon indicating copy to clipboard operation
current-song2 copied to clipboard

When using "include" filter nothing shows up.

Open Ic3Nine opened this issue 2 years ago • 6 comments

Hello, This is working great. I'm trying to tweak the setting so it only pulls song info from Firefox and when I use the include setting song info doesn't come up. Running on Win11 Firefox 99.0. Alternatively, if I change it to exclude, it starts working again pulling data from Chrome and Firefox. Am I just missing something? Any help is appreciated.

Side Note - i'm pretty nooblet with css. Is there a sample theme.css file that can be used/shared?

config file no_autostart = true [modules.gsmtc] enabled = true

[modules.gsmtc.filter] mode = "Include" items = ["firefox.exe"]

[server] port = 48457

Ic3Nine avatar Apr 07 '22 07:04 Ic3Nine

I've added some example themes in #33 here.

I couldn't exactly reproduce the issue with nothing showing up. However, I noticed that Firefox sometimes doesn't set the song metadata. You can verify if Firefox has set the expected metadata, by looking at the media control popup on Windows:

You can bring this up by for example changing the volume with the media keys.

Nerixyz avatar Apr 07 '22 09:04 Nerixyz

Hmmm. Not sure if this is a Win11 thing but both firefox and chrome only show the volume level when using the keyboard media buttons. Neither shows any media info. Tried soundcloud and youtube on both.

Ic3Nine avatar Apr 07 '22 19:04 Ic3Nine

That might be related to Bug 1740138. There's probably a bug on crbug as well but I couldn't find one.

Nerixyz avatar Apr 07 '22 19:04 Nerixyz

Most likely. So anyway, the include/exclude issue seems to be a Win11 bug as well. I loaded up the app on a Win10 box and the default config does not show any media playing from browsers(expected). Changed the setting to "include" and it works as intended. Removed msedge.exe (used for testing) and it stopped populating the media details as expected.

On a side note - the duration bar (unsure if this should be shown by default) is not visible on either version for me.

Ic3Nine avatar Apr 07 '22 20:04 Ic3Nine

On a side note - the duration bar (unsure if this should be shown by default) is not visible on either version for me.

This is related to Bug 1689538 (Firefox) and Bug 1170662 (Chromium). That's why I still have the extension. In an ideal world, the Browsers would emit timeline information about media.

Nerixyz avatar Apr 07 '22 20:04 Nerixyz

Admittedly I did not install the extension on Win10 box.

Ic3Nine avatar Apr 07 '22 20:04 Ic3Nine