Open bramhaag opened 6 years ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of duplicate issues on this repo, so please double check now that your issue has not already been solved or doesn't have an open issue already. To help make it easier for us to investigate your issue, please follow the contributing guidelines and ensure the issue template was filled out.
I would like to see the format to be more like that of the Spotify Rich Presence
You should contact the Discord Team about "advanced features". You probably could contact the Discord Team, you most likely would get the same treatment as Spotify did hopefully without royalties.
The Spotify integration appears to be a custom integration not using their standard RPC. I'm not sure that the advanced rich presence features would do any good in this case without contacting Discord for a similar layout.
Also, @bramhaag the track artist is currently what's selected. We can only pull that data from the currently playing song area, so if that's what Google displays there our hands are tied.
Stuff like Listening to Google Play Music Desktop Player
and Album Art Is not possible due to using the Rich Presences API which only meant to be supported for Games (therefore playing) and images shouldn't be made on the fly / grabbed from another source..
Spotify is custom as per what jostrander said, and won't be coming to Google Play Music without some partnership. I doubt that Discord will create some partnership with just this application dude to it not getting the information from an official source.
Advanced Rich Presences features won't work either, as these are again required for games.
I agree it needs some work, If we could get listening integration with discord that would be awesome. I was thinking of removing the Album as it can get awfully cluttered and killing the presence after plenty of idling. If you have any suggestions id be happy to look into it.
Instead of making the album art the generic logo, would it be possible to use the genre of music? Or does Google not provide such metadata?
Then only use the default logo when the queue is idle
I changed it to this, but I can't build it on any machine I have access to:
const presence = {
state: track.artist,
details: track.title,
startTimestamp: start,
endTimestamp: end,
instance: false,
largeImageKey: 'playing',
largeImageText: 'Google Play Music',
};
So in theory it should come out:
Google Play Music Desktop Player
Song name
Artist name
Duration remaining
I wanted to bump this issue because I too would like to see the integration improved slightly. It would be awesome if the icon would change to match the album image, with a little beacon in the corner with the current logo that is shown, kind of like the package for the Atom editor.
Near impossible @Techman- . You have to upload the "album images" before hand and pick which one to show in the integration by name. the Atom editor can get away with it, because there is a rather finite list of programming languages etc to create artwork for and maintain.
That's unfortunate. Is this worth bringing up in the Discord developer channels?
I doubt they are going to allow random image art via URL for rich presence as it's too insecure.
Album Art Is not possible due to using the Rich Presences API which only meant to be supported for Games (therefore playing) and images shouldn't be made on the fly / grabbed from another source..
Already mention this.
To get the album art we would need to get some form of partnership thing but as I've also mentioned:
Spotify is custom... , and won't be coming to Google Play Music without some partnership. I doubt that Discord will create some partnership with just this application dude to it not getting the information from an official source.
What the developers could do is make a little "branch" of this API specifically for media players. Music apps can be individually cleared by a human if security is a concern.
Just floating ideas.
and won't be coming to Google Play Music without some partnership. I doubt that Discord will create some partnership with just this application dude to it not getting the information from an official source.
I'm not asking for a specific integration for GPMDP, I'm wanting a more general API so that a variety of media applications could integrate, like VLC too.
It's a general solution to a very local issue :P
Also, it says playing but it should say 'listening to', like spotify.
Stuff like
Listening to Google Play Music Desktop Player
... Is not possible due to using the Rich Presences API which only meant to be supported for Games therefore playing instead of listening
I know in discord.js you can set the type to 2 and then it says that
While discord-rpc is an extension of D.js, they don't work in the same way at all! Discord RPC doesn't allow for providing of type unlike D.js which will provide it through the API.
For a person who has worked on other Discord RPC related projects and D.js projects, I'm aware of the limitations within discord RPC.
No Custom Album art images, No Listening to Google Play Music
, No Listening party, No in chat stuff
Without some form of partnership with Discord - which is unlikely due to being a third party application.
Can we make this more relevant to the original issue and talk about it's layout!
The current layout looks a bit weird in my opinion:
The
Album {album} by {artists}
line is in my opinion very confusing, the{artists}
are the artists of the current song playing, not the "artist" of the album, i.e albums such as Super Eurobeat have songs from 10 or more artists. In my opinion, the layout could be improved by either making it fully customizable or by using something like Discord's Spotify layout (I am aware that this uses some restricted features)