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

Open
opened 2024-07-23 13:38:06 +00:00 by SpyMachine · 7 comments
SpyMachine commented 2024-07-23 13:38:06 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • 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

### Preflight Checklist - [X] I use the latest version of YouTube Music (Application). - [X] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) 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_
jasoncyu commented 2025-01-17 19:37:48 +00:00 (Migrated from github.com)

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

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
Lalit64 commented 2025-02-02 09:43:50 +00:00 (Migrated from github.com)

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

@th-ch This seems to be a common issue, but no one is replying or even trying to resolve this?
Lalit64 commented 2025-02-02 09:44:42 +00:00 (Migrated from github.com)

@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

@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
JellyBrick commented 2025-02-02 14:53:05 +00:00 (Migrated from github.com)

@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

> [<img alt="" width="16" height="16" src="https://avatars.githubusercontent.com/th-ch?size=32">@th-ch](https://github.com/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
Lalit64 commented 2025-02-03 00:19:23 +00:00 (Migrated from github.com)

@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?

@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?
JellyBrick commented 2025-02-03 09:46:26 +00:00 (Migrated from github.com)

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.

> 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.
Lalit64 commented 2025-02-12 15:39:57 +00:00 (Migrated from github.com)

@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.

@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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#2269
No description provided.