-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shortcuts plugin blocks native MediaSession api #204
Comments
Interesting, but after disabling shortcuts the thumbnail/album art still isn't present on macOS, even Spotify has this issue, so my guess is that it is something Apple related. However, the song duration and elapsed seconds are also not present on macOS (the now playing menu), this issue is not present on Spotify and should thus be fixable. |
The duration and elapsed seconds don't show on my pc [Windows 10] with any app, so I can't really try to fix that |
The duration and elapsed seconds do show on those examples 🤔 |
looks like chromium doesn't have the song position implemented, because when I test the example site on Chrome the duration and elapsed seconds are not present, Safari works fine though. |
see #50
After spending tons of hours researching the
MediaSession
API and way of implementation,I realized Electron supported it all along, it just wasnt working because of the shortcuts plugin
Youtube Music even set it up automatically for each song, no need to do anything,,
⚠️ that includes media key controls, so =>
disabling the shortcuts plugin will still let you use mediakeys control + have native MediaSession support
[This has been tested on Windows && Linux with the help of helpful guys over at Electron]
So anyway I think you probably should atleast remove shortcuts from the default plugins, at this state it only removes features. - people that want to disable that overlay could just enable the plugin
Example screenshot to show MediaSession api working with youtube-music on windows
The text was updated successfully, but these errors were encountered: