miraclx / cmusd Goto Github PK
View Code? Open in Web Editor NEWCMUS-D (C* Music Player Daemon) with NodeJS
License: Apache License 2.0
CMUS-D (C* Music Player Daemon) with NodeJS
License: Apache License 2.0
Howdy. I recently downloaded this application through npm
. It's correctly logging which song is currently playing and the location of the album art for each individual song, but regardless of what I do, I can't seem to be able to have the Media Player Instance show up. I read through the readme
and the index.js
file, but wasn't able to diagnose the root cause.
Again, thanks for this cool application!
When I start the cmusd, it is fine;
but when I play my music, the program crash with error prompt
TypeError: (0 , _url.pathToFileURL) is not a function.
...
...
Platform: Ubuntu 18.04 LTS
NodeJS Version: 8.x
After my research, I find that the version of NodeJS causing this problem ( function pathToFileURL
is introduced in NodeJS 10 but I am using 8.x).
So, I update Node, delete all the cmusd build dependencies, rebuild;
then eventually, everything works fine.
Suggestion: I think we should remind others to use NodeJS 10 in the README.md
Hi
After installing on ubuntu server 18.04 and calling cmusd I get this errror :
/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/bus.js:24
self.connection = _dbus.getBus(1);
^
Error: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
at new module.exports (/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/bus.js:24:27)
at Function.DBus.getBus (/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/dbus.js:39:9)
at Function.DBus.registerService (/usr/local/lib/node_modules/cmusd/node_modules/dbus/lib/dbus.js:78:17)
at Player.init (/usr/local/lib/node_modules/cmusd/node_modules/mpris-service/index.js:35:22)
at new Player (/usr/local/lib/node_modules/cmusd/node_modules/mpris-service/index.js:28:7)
at Player (/usr/local/lib/node_modules/cmusd/node_modules/mpris-service/index.js:13:40)
at Object. (/usr/local/lib/node_modules/cmusd/bin/index.js:88:43)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
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.