Pigpog / vlc-discord-rpc

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

Is there a way to change the icon and the work vlc media player? #51

Closed Bozic421 closed 3 years ago

Bozic421 commented 3 years ago

Is there a way to change the icon and the word 'vlc media player'? I don't see a option to change the icon in the config file is it possible? image

Pigpog commented 3 years ago

Commit cd522d069a9bd9985b920fe0baec603c76e01c27 adds the ability to change the icon that's used. This is limited to the images found in the Discord application. To change the application ID used, you can change the id field in the config. To create your own application, go to Discord Developer Portal. Create the application and add rich presence to it. Then upload assets named "play", "paused", "stopped", and whatever you want for the large cone icon.

Bozic421 commented 3 years ago

That works but I can't figure out a way to change the words "vlc media player" over it.

Pigpog commented 3 years ago

That text is associated with the application ID. You will need to create your own application to change it, using the process described above.

Bozic421 commented 3 years ago

Yas that worked last question, So when I start the npm it displays the name of the title bar above the player image which is image is there a way to make it show the file name instead ? image

Pigpog commented 3 years ago

The data displayed in the rich presence is never taken from the title bar. It uses the http interface of vlc to obtain all available data from VLC in JSON format. The most relevant data available for the media is what gets shown (song name, episode number, etc), with the last resort being filename.

You can investigate this data yourself by manually setting a password in config.js if you haven't already, then open a browser to http://127.0.0.1:8080/requests/status.json. When asked for a username and password, leave username blank and use the password you set.

If you could reproduce this issue and send a copy of the data from that link here, I could tell you exactly why it is saying Avidemux. I have a suspicion that this exact issue might be largely unsolvable, because clearly the word "Avidemux" is pretending to be useful information.

Bozic421 commented 3 years ago

Thank you .