[Feature Request]: Youtube Music does not send "media changed" event to NotificationCenter on MacOS #2269
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#2269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preflight Checklist
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
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
@th-ch This seems to be a common issue, but no one is replying or even trying to resolve this?
@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
Because this issue was caused by Electron's internal implementation. check the labels
@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?
We will look into it, thanks for providing the information.
@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.