Pigpog / vlc-discord-rpc

Discord rich presence for VLC media player.
MIT License
207 stars 31 forks source link

Change the default "Playing VLC Media Player" rich presence. #62

Closed jeryjs closed 2 years ago

jeryjs commented 2 years ago

I was just hoping that there would be some way to change the rich presence from "Playing VLC Media Player" to smth else for me like by changing the app ID r smth. So, is it possible?

Pigpog commented 2 years ago

Yes, it is possible to change that text. Create a new Discord Application, name it what you want it to say, and then use that app ID. Be sure to upload the image assets to the rich presence section.

jeryjs commented 2 years ago

Thx, I was able to change the name, but I noticed that It doesn't show the paused icon (or volume) when the video is paused. Is there anything I need to change here? But it displays the 'Playing' icon fine. image image

Pigpog commented 2 years ago

perhaps it should be "paused" instead of "pause"

jeryjs commented 2 years ago

Oh! Okay tho in the /icons/ folder it was mentioned 'paused'

jeryjs commented 2 years ago

oh, sry, my bad... It was 'pause' and not 'paused'

Pigpog commented 2 years ago

aw cool lemme know if it works

jeryjs commented 2 years ago

Nope... no luck. It still doesn't show the paused icon

Pigpog commented 2 years ago

Try reopening discord, maybe the asset hasnt propagated to your client yet

jeryjs commented 2 years ago

Ah! I fixed it! I had to set the 'small image key' to 'pauselight'

jeryjs commented 2 years ago

tho is it possible to make the playing/ paused icons white (like before) instead of black

Pigpog commented 2 years ago

youd have to name the light assets playing paused stopped, sorry thats a bit inconvenient to change now for ya

jeryjs commented 2 years ago

kay! thx! and hw do i change the vlc icon? rn only the default 'vlc' icon works

Pigpog commented 2 years ago

the large icon can be set in config.js, the largeIcon setting

jeryjs commented 2 years ago

oh, sry, I meant how to add my own vlc icon instead of default

Pigpog commented 2 years ago

just upload a new large icon as an asset and set its name in config.js

jeryjs commented 2 years ago

any name?

Pigpog commented 2 years ago

any name works yes

jeryjs commented 2 years ago

will try now

jeryjs commented 2 years ago

Nope... didnt work Now the Paused icon appears as the large icon and vlc icon is absent

Pigpog commented 2 years ago

try reloading discord

jeryjs commented 2 years ago

youd have to name the light assets playing paused stopped, sorry thats a bit inconvenient to change now for ya

It's still black even though I removed all the black icons and replaced them with the light

jeryjs commented 2 years ago

try reloading discord

ok

Pigpog commented 2 years ago

your client is caching the assets in the application. it can take some time for changes to show up on your end. restarting your discord client usually makes it reload the assets

jeryjs commented 2 years ago

Yay~ Now the small icons appear in white.

Also, image Should I add the other images such as 'vlcflat', 'vlcblue', 'vlcneon', etc? cuz it doesnt work if i set anything other than 'vlc' in config.js

Pigpog commented 2 years ago

nah the other images arent required. not sure why names other than vlc wouldnt work, other than caching maybe

edit: oh you mean name them the same. Nah that shouldnt matter

jeryjs commented 2 years ago

Thx, I was able to change the name, but I noticed that It doesn't show the paused icon (or volume) when the video is paused. Is there anything I need to change here? But it displays the 'Playing' icon fine. image image

NOOOOO It started frm problem 1 again :( It doesnt show the 'paused' icon even if I set the 'small image key' to 'pauselight' in developer portal

Pigpog commented 2 years ago

you know the developer portal doesnt change your actual rich presence right? it shouldnt be possible for the icon to not show up in the rich presence visualizer when you pick it-- unless theres a bug on discord's end

jeryjs commented 2 years ago

oh... didn't knw that lol well, maybe waiting for a bit could fix it

Pigpog commented 2 years ago

most likely. the discord servers dont like to work very hard when it comes to caching that stuff

jeryjs commented 2 years ago

🤣 Yea seems like it. Thx for helping me.

Pigpog commented 2 years ago

no problem, glad you could get it working, merry christmas