node-music-mplayer
v1.0.0
Published
Node.js wrapper for mplayer.
Downloads
3
Readme
node-music-mplayer
A node.js wrapper for MPlayer, which allows you to play audio files (e.g. mp3, wav, ogg...) on your soundcard.
This wrapper uses mplayer's slave mode
.
This project is forked from @loics2
and is done to approaching an even better api which allows a more fluent and an expanded usage of mplayer's slave mode options.
##Usage
Firstly you need MPlayer, which can be downloaded
here
.When mplayer is available through command line, install node-music-mplayer
Then, you need to make a new instance of the module.
var player = require('node-music-mplayer');
var player = new Mplayer(arg1, arg2);
arg1 represents either a string, representing the path to the file you want to play or an object of options
if arg1 is the path string, then arg2 can be the object of options
##Stability
This module uses the readline
module, which is currently marked unstable.
This module has been tested on Windows 8.1 with MPlayer 4.9.2