pigpog / vlc-discord-rpc Goto Github PK
View Code? Open in Web Editor NEWDiscord rich presence for VLC media player.
License: MIT License
Discord rich presence for VLC media player.
License: MIT License
Describe the bug
A clear and concise description of what the bug is.
Its giving me loads of errors when i try to install npm and the rpc isnt working correctly.
npm audit fix
doesnt fix the problem. Ive tried to run with and without Admin.
Does the script show an error?
Check terminal output.
Does Discord display that you are "Playing VLC Media Player"?
Yes but its broken. https://i.imgur.com/QlOYi6R.png
To Reproduce
It happens everytime i try to install it.
Terminal output
Your environment has been set up for using Node.js 11.6.0 (x64) and npm.
C:\Windows\System32>cd "C:\Users\Luke\Downloads\vlc-discord-rpc-master"
C:\Users\Luke\Downloads\vlc-discord-rpc-master>npm install
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.
audited 53 packages in 1.458s
found 11 vulnerabilities (9 moderate, 2 high)
run npm audit fix
to fix them, or npm audit
for details
C:\Users\Luke\Downloads\vlc-discord-rpc-master>
Your Setup:
Additional context
Add any other context about the problem here.
:^) here we go again.
It might be good to have an option to not clear activity as long as VLC is open, and instead, just show the state as paused or stopped (this fits my use case).
Not to seem pushy or anything, but I think it would be nice to change the logo in the status to the Christmas logo so that it matches the logo in the application, I think that would be a neat feature!
Hi guys,
I've try some things for edit rich presence but it's do something and it's always "Play VLC Media Player" and i want to see "Play" and the movie i watch ^^
I'm good in Programming Language but actually i don't find how to edit that :/
It's the AppID ?
Describe the bug
A clear and concise description of what the bug is.
When loading the script, it installs correctly. Yet when trying to run 'detached' mode it simply won't detect VLC even if reopened.
Does the script show an error?
The error message shown is: 'Failed to reach VLC. Is it open?'
Does Discord display that you are "Playing VLC Media Player"?
Only in 'default' mode. I have not been able to get it to work on 'detached' mode.
To Reproduce
Steps to reproduce the behaviour:
Terminal output
Share what your terminal says when you run the script.
Your Setup:
Additional context
I have followed the instructions on how to configure for detached mode but still does not seem to work correctly, only works in default mode which isn't practical if I close the VLC window since the script also closes.
Sure I'm the stupid one in the story, but can't figure out the source of the problem.
Can somebody please help me with the phenomenon mentioned below?
Describe the bug
When launching the start.bat file, I get the following error message:
A problem occurred while launching vlc.
Press any key to continue . . .
Connecting to Discord...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node ./src/app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\RozvM\AppData\Roaming\npm-cache\_logs\2020-11-17T13_02_19_888Z-debug.log
Log: https://pastebin.com/QNTcU8dS
Your Setup:
Whenever I attempt to install I get
C:\Users\maxla\Desktop\vlc-discord-rpc-master>npm install
npm WARN [email protected] requires a peer of bufferutil@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of zlib-sync@^0.1.0 but none is installed. You must install peer dependencies yourself.
added 39 packages from 56 contributors and audited 46 packages in 10.77s
found 11 vulnerabilities (9 moderate, 2 high)
runnpm audit fix
to fix them, ornpm audit
for details
2018-04-12T17_20_39_809Z-debug.log
I get errors when I use the "npm install" command, heres the log if it helps. I have pretty much no experience with this stuff btw.
Running...
(node:4556) UnhandledPromiseRejectionWarning: Error: Unhandled "error" event. ([object Object])
at RP.emit (events.js:186:19)
at rpc.login.then.catch (I:\Downloads\vlc-discord-rpc-master\vlc-discord-rpc-master\node_modules\discord-rich-presence\index.js:54:28)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:4556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Describe the bug
It suddenly stopped working after an update.
To Reproduce
Terminal output
A problem occurred while installing modules. Ensure that npm is installed.
Your Setup:
Hi,
I've tried to start the RPC when my windows session open, but if VLC is not started i get an error
events.js:174
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED 127.0.0.1:8080
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
Emitted 'error' event at:
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./src/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
I hope that will be fixed soon, thank you :)
Describe the bug
Running rpc.js after following instructions yields the error shown in Terminal output
To Reproduce
Steps to reproduce the behavior:
Terminal output
PATH\node_modules\discord-rich-presence\node_modules\discord-rpc\src\Client.js:128
async login(options = {}) {
^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContect (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
.
.
.
Your Setup:
Additional context
N/A
Describe the bug
The script start the vlc right but don´t display any information in Discord.
To Reproduce
Steps to reproduce the behavior:
Terminal output
https://pic.shadowgaming.de/upload/1550833548.png
Your Setup:
Additional context
Add any other context about the problem here.
Starting script...
[email protected] start C:\Users\bweak\Desktop\vlc-discord-rpc-win64-bundle\vlc-discord-rpc
node ./src/app.js
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
├─┬ [email protected]
│ ├── UNMET PEER DEPENDENCY bufferutil@^4.0.1
│ ├── [email protected]
│ ├── UNMET PEER DEPENDENCY utf-8-validate@^5.0.2
│ └── [email protected]
├── UNMET PEER DEPENDENCY register-scheme@github:devsnek/node-register-scheme
└── [email protected]
> [email protected] start /home/lain/Programs/vlc-discord-rpc
> node ./src/app.js
/home/lain/Programs/vlc-discord-rpc/node_modules/discord-rpc/src/transports/websocket.js:48
} catch {} // eslint-disable-line no-empty
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/lain/Programs/vlc-discord-rpc/node_modules/discord-rpc/src/transports/index.js:5:14)
Describe the bug
Hey, I have VLC installed to a "wierd spot" and also set this spot in config.js but it still shows the error..
Does the script show an error? - Yes
Does Discord display that you are "Playing VLC Media Player"? -> No
Terminal output
Starting script...
> [email protected] start D:\Data\Downloads\vlc-discord-rpc-win\vlc-discord-rpc
> node ./src/app.js
Connecting to Discord...
------------------------------------
ERROR: A problem occurred while launching VLC. Most likely, you installed VLC to a weird spot and will need to set the vlcPath value in config/config.js to the path to your vlc executable (eg. vlcPath: "C:/Program Files/videolan/vlc/vlc.exe")
------------------------------------
Waiting 20 seconds before exiting to give you time to read the error message :)
Logged in as TDR_Minecraft
Your Setup:
Windows 10 Pro x64
Node.js v14.17.3
config file
// See CONFIGURATION.md for more information
module.exports = {
// Overrides command used to launch VLC when in attached mode
// If blank, defaults are used
vlcPath: "D:\Program Files\VideoLAN\VLC\vlc.exe",
rpc: {
id: '410664151334256663',
updateInterval: 5000,
sleepTime: 30000,
// Show the album track number when applicable. Example: (2 of 10)
displayTrackNumber: true,
displayTimeRemaining: true,
// If true, VLC will not be opened for you.
// Note: You must set a password
detached: false,
},
vlc: {
// If blank, a random password is used
password: '',
port: 8080,
address: 'localhost'
},
};
Describe the bug
I did everything as it says in the readme file but on discord it just says "Nothing is playing", I have tried with multiple audio files and none of them will show as if they were playing (https://i.imgur.com/E4zIZWw.png)
To Reproduce
I did all the necessary steps, let me pull up pretty much all the config files: https://i.imgur.com/KY2CI6q.png https://i.imgur.com/0CyaRNu.png & https://i.imgur.com/7N8tlCx.png
Terminal output
https://i.imgur.com/0CyaRNu.png I have also tried with cmd and PowerShell
Your Setup:
Describe the bug
No error, but Discord doesn't show any Presence
To Reproduce
Steps to reproduce the behavior:
Terminal output
Connecting to Discord...
Logged in as pegfun16
Presence updated
Your Setup:
Additional context
I tried to run with Detached mode both enabled and disabled.
I get this message when I try to install it:
D:\Downloads\vlc-discord-rpc-master>npm install
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.0 but none is installed. You must install peer dependencies yourself.
up to date in 2.502s
D:\Downloads\vlc-discord-rpc-master>
I can't seem to install any of the peer dependencies required; register-scheme and erlpack install but the error doesn't go away, and sodium doesn't install at all, with really strange errors.
When I try launching the program without these dependencies, it just outputs a message about N-API and hangs.
> npm install
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.
audited 53 packages in 0.985s
found 11 vulnerabilities (9 moderate, 2 high)
run `npm audit fix` to fix them, or `npm audit` for details
Your Setup:
npm audit fix does not fix them. tried manually installing them and it fails to compile
When running this script and playing videos through VLC, the script is always assuming that the playback is always at normal speed, which is for the most part correct, but if I'm doing something a bit less interesting, I may want to change the playback speed to speed it up, or slow the video down to analyse it, so I'd like the RPC to have the time remaining updated accordingly.
would it be possible to make the cmd/program run in the background or in tray so it doesnt take the space on taskbar ?
I noticed that the VLC media player status stays after VLC is closed until you close the program. I want to keep this open in the background as a startup program, so I really need this behavior. Is this possible?
OS: Windows 10 (64-bit)
Node: 12.4.0
NPM: 6.9.0
vlc-discord-rpc: 2.2.0
System language: French
------------------------------------
An error occurred when launching VLC
------------------------------------
Error: spawn C:Program FilesVideoLANVLC�lc.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:84:9) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn C:Program FilesVideoLANVLC\u000blc.exe',
path: 'C:Program FilesVideoLANVLC\u000blc.exe',
spawnargs: [
'--extraintf',
'http',
'--http-host',
'localhost',
'--http-password',
'khp0t539',
'--http-port',
9090
]
}
Don't really know what to put here, if you want more info please ask.
Error log:
internal/modules/cjs/loader.js:605
throw err;
^
Error: Cannot find module 'discord-rich-presence'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/home/shardion/Apps/vlc-discord-rpc-master/rpc.js:1:78)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
I want to just show the video file name instead of show name and season number extracted from the metadata in my discord status. How can I do it by editing the format file?
Windows install is failing to launch VLC with vlc-discord-rpc
Describe the bug
A clear and concise description of what the bug is.
Does the script show an error?
Does Discord display that you are "Playing VLC Media Player"?
To Reproduce
Steps to reproduce the behavior:
Terminal output
> [email protected] start /home/pigpog/Desktop/vlc-discord-rpc
> node ./src/app.js
Connecting to your Discord client...
Failed to communicate with your Discord client. Are you sure it is open?
Your Setup:
Additional context
i didnt do anything wrong i swear
While running in detached mode if the user decides to quit VLC while still running this program the RPC continues to show up on the user's profile.
Describe the bug
A clear and concise description of what the bug is.
After double clicking start.bat, it can't find the node_modules folder. After attempting to install the modules, it errors out with: "A problem occurred while installing modules. Ensure that npm is installed."
I have node and npm installed to C:\node\nodejs and also have the path added to the %PATH% environmental variable.
To Reproduce
Steps to reproduce the behavior:
Terminal output
Share what your terminal says when you run the script.
Did not detect node_modules directory; Installing modules.
[Attempted installing modules, too quick to read, after 2-5 modules gives below output.]
A problem occurred while installing modules. Ensure that npm is installed.
Press any key to continue . . .
Your Setup:
Additional context
Add any other context about the problem here.
Describe the bug
If I close VLC while playing any media it is still showing up in Discord, using detached mode.
To Reproduce
Steps to reproduce the behavior:
Terminal output
0|app | Error: connect ECONNREFUSED 127.0.0.1:8080 0|app | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) { 0|app | errno: 'ECONNREFUSED', 0|app | code: 'ECONNREFUSED', 0|app | syscall: 'connect', 0|app | address: '127.0.0.1', 0|app | port: 8080 0|app | }
Your Setup:
Additional context
I temporary fixed it by editing error handler on diff.js and now working fine :)
I love this feature and I'm looking forward for the VLC Extension, good work, keep it up👍
Code changed:
diff.js, line 57:
.catch((err) => { last.state = "stopped"; callback(last, false); });
When I add VLC process as a game, Discord grabs the current band name and song title playing and then never updates it upon songs changing or vlc restarting.
I've removed the username below, don't mind the double slashes
node /home//vlc-discord-rpc/rpc.js withvlc
Running...
url.js:338
this.auth = decodeURIComponent(rest.slice(0, atSign));
^
URIError: URI malformed
at decodeURIComponent ()
at Url.parse (url.js:338:19)
at Object.urlParse [as parse] (url.js:149:13)
at Request.init (/home//vlc-discord-rpc/node_modules/request/request.js:138:53)
at new Request (/home//vlc-discord-rpc/node_modules/request/request.js:98:8)
at request (/home//vlc-discord-rpc/node_modules/request/index.js:50:11)
at VlcService.HttpService.get (/home//vlc-discord-rpc/node_modules/droopy-http/HttpService.js:18:3)
at VlcService._statusRequest (/home//vlc-discord-rpc/node_modules/droopy-vlc/VlcService.js:27:7)
at VlcService.status (/home//vlc-discord-rpc/node_modules/droopy-vlc/VlcService.js:49:14)
at update (/home//vlc-discord-rpc/rpc.js:28:6)
Linux
node --version v11.14.0
There were 11 vulnerabilities and audit couldn't fix it, so I installed with no audit.
this is the log
https://paste.gg/p/anonymous/7de6030369b34ec6bb43985a2d50b61d/files/4f7352d4c7574fbe8fb14350f6971913/raw
i use busenlabs linux debian 9
Might be a stupid question but do I just uninstall node and git? And also delete the "vlc-discord-rpc-master" folder?
Hello,
I have the same problem as described in this issue.
If i ever close VLC, Discord still display whatever i was listening to. Even after the 30 seconds mark. I tried to edit it to 4000. It still displays it forever. Once it reaches "0 seconds remaining".
The only way to make it disapear at all, is to close the CMD window where vlc-discord-rpc start.bat was launched
Thank you for this plugin
Describe the bug
Doesn't work when pinned to the start bar or in a dock.
Says NPM isn't installed when it is and that VLC player isn't working.
Does Discord display that you are "Playing VLC Media Player"? Only when I start the bat file in the directory it's saved in.
To Reproduce
Steps to reproduce the behavior:
Terminal output
A problem occurred while launching vlc.
Press any key to continue...
Your Setup:
Additional context
Add any other context about the problem here.
As the readme currently is, I am really not sure what how this discord rich presence is supposed to work. I think adding some clarification or more details may help people in the same situation as I am.
I am running Linux, my vlc is installed in the default location /usr/bin/vlc
I also installed npm into the unzipped folder to be safe.
This is what happens when I run the script.
Describe the bug
Always getting the error,
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds.
Yes, the client is running, but not displaying.
I also tried these steps in another this issue, but nothing works.
To Reproduce
Steps to reproduce the behavior:
Simple, launch the script. Doesn't mater if Discord was running or not before.
Terminal output
luxi@Mint-Laptop ~/T/vlc-discord-rpc> sh start.sh
> [email protected] start /home/luxi/Téléchargements/vlc-discord-rpc
> node ./src/app.js
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
Connecting to Discord...
Failed to connect to Discord. Is your Discord client open? Retrying in 20 seconds...
^C⏎
luxi@Mint-Laptop ~/T/vlc-discord-rpc> npm version
{ 'vlc-discord-rpc': '2.2.12',
npm: '6.14.4',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '36.1',
http_parser: '2.9.3',
icu: '66.1',
modules: '64',
napi: '5',
nghttp2: '1.40.0',
node: '10.19.0',
openssl: '1.1.1d',
tz: '2021a',
unicode: '13.0',
uv: '1.34.2',
v8: '6.8.275.32-node.55',
zlib: '1.2.11' }
luxi@Mint-Laptop ~/T/vlc-discord-rpc> npm --version
6.14.4
VLC version: 3.0.9.2 Vetinari
Discord client version:
Additional context
I also have Garuda Linux, and Windows (10), if you want to let me test on those
It would be cool if vlc-discord-rpc supported displaying the album cover of the playing track over Rich Presence, like Spotify does - if that's possible.
Describe the bug
A clear and concise description of what the bug is.
Does the script show an error? yes
Does Discord display that you are "Playing VLC Media Player"? no
To Reproduce
Steps to reproduce the behavior:
Terminal output
with v12.18.3
with v15.14.0
Your Setup:
Additional context
I have installed VLC in the Program Files of my 2nd hard drive, I have added the path to the config.js
Is it possible to start the script when VLC is opened automatically? I don't want to start the script manually each time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.