GithubHelp home page GithubHelp logo

miraclx / cmusd Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 2.0 1.53 MB

CMUS-D (C* Music Player Daemon) with NodeJS

License: Apache License 2.0

JavaScript 100.00%
cmus cmus-remote media media-player media-player-widget dbus dbus-service mpris mpris2 remote-control

cmusd's Introduction

Hi there ๐Ÿ‘‹

Show Profile Metrics

Nothing here? Click to view

cmusd's People

Contributors

miraclx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cmusd's Issues

(Mac OS X - High Sierra) Media Player Instance Not Visible

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!

screen shot 2019-02-23 at 8 07 30 pm

Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

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)

TypeError: (0 , _url.pathToFileURL) is not a function

What is the problem

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.
...
...

Environment

Platform: Ubuntu 18.04 LTS
NodeJS Version: 8.x

Soulution

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.