Giter Site home page Giter Site logo

dizzay's Introduction

dizzay

dizzay (/ˈdɪːdʒeɪ/) is a command-line program that plays media from a plug.dj room in VLC or in Mplayer.

Installation - Usage - Dependencies - License

VLC

Installation

npm install --global dizzay

Usage

dizzay [options]

play music from a plug.dj room in VLC

Options:

  -h, --help                 output usage information
  -u, --user [email]         email address of your plug.dj account. (optional, for login)
  -p, --password [password]  password of your plug.dj account. (optional, for login)
  -r, --room <room>          room url or slug to join.
  -q, --quality [quality]    video quality for YouTube videos. (low|medium|high) [medium]
  -a, --audio-only           do not show videos.
  --vlc                      play songs in vlc.
  --mplayer                  play songs in mplayer.
  --now-playing              log the current playing song to standard output.
  --mplayer-args <args>      string of space-separated command-line arguments to pass to mplayer.
  --vlc-args <args>          string of space-separated command-line arguments to pass to vlc.

The --vlc and --mplayer flags determine which media player to use. If neither flags are given, VLC is used.

Examples:

  • dizzay --mplayer --now-playing tastycat
  • dizzay --vlc mrsuicidesheep-chillout
  • dizzay --now-playing --vlc loves-kpop

Dependencies

You need a supported media player in your $PATH to run Dizzay. On Linuxes, they can be installed through a command prompt using something like:

# apt-get on Debians/Ubuntus,
# but it should be similar for other distributions
apt-get install vlc     # for vlc
apt-get install mplayer # for mplayer

Building

The source code is written in ES6 and can be compiled using:

npm run build

License

MIT

dizzay's People

Contributors

goto-bus-stop avatar greenkeeper[bot] avatar greenkeeperio-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dizzay's Issues

An in-range update of miniplug is breaking the build 🚨

Version 1.6.1 of miniplug just got published.

Branch Build failing 🚨
Dependency miniplug
Current Version 1.6.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As miniplug is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details
Release Notes v1.6.1
  • Emit a waitlistUpdate event when advancing. (fe39328)
  • Increase default maxEventListeners for miniplug event emitters. (834a88c, 04f97ca)
Commits

The new version differs by 16 commits .

  • 3034de2 1.6.1
  • 81ca1bf Add miniplug:ws debug namespace, logging all incoming events
  • fe39328 Emit a waitlistUpdate event when advancing.
  • d3b3d8d Add tests for room joining.
  • 04f97ca Increase max event listeners for the socket, too.
  • cb80f23 Notes about async functions
  • 834a88c Increase default maxListeners a bunch for the miniplug core event emitter.
  • 55e8f57 Emit userUpdate events for role updates.
  • 2ff2168 Docc method naming convention.
  • 70658d0 Sorta document how to extend internal wrap* methods.
  • 0c2c70b Expose object wrappers.
  • ea0c798 Implement systemUpdate event.
  • 1fbf751 Implement maintenance and maintenanceAlert events.
  • 4c775d1 Add 'systemMessage' event.
  • d58e302 Add room property setters.

There are 16 commits in total. See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Didn't work on Windows

When I launch dizzay, the terminal return an error :

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)

Dizzay crash when the video isn't available anymore

Dizzay crash when the video isn't available anymore

Stack

Stack (raw)

C:\Users\MrSceat\dizzay\lib\mplayer.js:67
      throw e;
      ^

Error: Command failed: youtube-dl --get-url -f bestaudio https://youtube.com/watch?v=rqdZsRGktPA
ERROR: rqdZsRGktPA: YouTube said: "FuntCase, Cookie Monsta,..."
The YouTube account associated with this video has been terminated due to multiple third-party notifications of copyright infringement.

    at ChildProcess.exithandler (child_process.js:206:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:852:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)

To reproduce

  • Start dizzay
  • Choose a track on your playlist that play an unavailable youtube video

Use ytdl to get stream URLs

https://www.npmjs.com/package/ytdl-core

These stream URLs should then be passed to mplayer and vlc raw, so they can deal with playing the right parts.

Currently seeking is terrible mostly because the full video is piped into the player from start to finish. mplayer and VLC both can seek in HTTP video streams, so we should take advantage of that.

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.