flecs icon indicating copy to clipboard operation
flecs copied to clipboard

[Feature Request]: Youtube Music does not send "media changed" event to NotificationCenter on MacOS

Open SpyMachine opened this issue 1 year ago • 7 comments

Preflight Checklist

  • [X] I use the latest version of YouTube Music (Application).
  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Sorry I'm not very familiar with MacOS development but I'm trying to use Sketchybar to show the currently playing song with the "media_changed" event subscribed.

The event works with every other player, including using Youtube music in the browser but not for this desktop player. It looks like this is where sketchybar subscribes to the notification https://github.com/FelixKratz/SketchyBar/blob/master/src/media.m#L33-L36.

I wasn't really sure if this was a bug or an FR but figured I'd keep it at FR as it's not really a stated supported feature.

Proposed Solution

I'm honestly not sure what the solution is or why this doesn't work as it does seem like "Now Playing" knows the song changed.

I might try to do some more research later and I'll come back with my findings or a PR if I figure out what's going on.

Alternatives Considered

N/A

Additional Information

No response

SpyMachine avatar Jul 23 '24 13:07 SpyMachine

Yeah, I experienced the same thing with sketchybar. Kind of a curious issue, because aside from this, the app behaves like any other media player

jasoncyu avatar Jan 17 '25 19:01 jasoncyu

@th-ch This seems to be a common issue, but no one is replying or even trying to resolve this?

Lalit64 avatar Feb 02 '25 09:02 Lalit64

@SpyMachine I can get control center Album Cover Title and Artist working by enabling the Lumia Stream Plugin but it still somehow doesn't work with SketchyBar

Lalit64 avatar Feb 02 '25 09:02 Lalit64

@th-ch This seems to be a common issue, but no one is replying or even trying to resolve this?

but no one is replying or even trying to resolve this?

Because this issue was caused by Electron's internal implementation. check the labels

JellyBrick avatar Feb 02 '25 14:02 JellyBrick

@JellyBrick I can't find any issue in the https://github.com/electron/electron/ repository could you maybe link to it? Also a small question: why does it seem to be working with the Lumia Stream plugin enabled? It shows the Cover Title and Artist in the control center?

Lalit64 avatar Feb 03 '25 00:02 Lalit64

why does it seem to be working with the Lumia Stream plugin enabled? It shows the Cover Title and Artist in the control center?

We will look into it, thanks for providing the information.

JellyBrick avatar Feb 03 '25 09:02 JellyBrick

@JellyBrick Update: it seems to be working without Lumia Stream enabled, but it still doesn't show up in sketchybar. It seems that env.INFO.app is undefined when trying to use in sketchybar.

Lalit64 avatar Feb 12 '25 15:02 Lalit64