GithubHelp home page GithubHelp logo

node-mplayer's People

Contributors

lacrioque avatar loics2 avatar maocx avatar nkcr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

node-mplayer's Issues

Good work, but looks like I'm doing something wrong

Hello,

node-mplayer plays perfectly my mp3 files. Nice job!

However, I should have missed something, once I can stop or pause the music (well, any other command will also fail). Below my code:

function musicControl(command, file) {
    var player = new mPlayer();
    switch (command) {
        case 'S':
            player.stop();
            console.log('this command IS ' + command);
            break;
        case 'p':
            player.pause();
            console.log('command IS ' + command);
            break;
        case 'v':
            player.setVolume(30);
            console.log('command IS ' + command);
            break;
        case 'V':
            player.setVolume(80);
            console.log('command IS ' + command);
            break;
        case 'P':
            player.setFile(file);
            player.play({volume: 30});
            console.log('command IS ' + command);
            break;
        default:
    }
}

Any help will be appreciated.

Regards,

Sérgio

volume argument on spawn

I couldn't hear any sound with the --volume= argument, so I changed it to ' -volume ' ,but still couldn't get any sound.

When I removed the argument it worked as expected.

Get streamtitle and file info

It would also be nice to collect the streamTitle info when playing radio streams. Additionally when playing local files it would help if the artist/album/genre information could be collected from the following stdout output :

mp3 @ 0x75b225b8]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (mp3), -aid 0
[lavf] stream 1: video (mjpeg), -vid 0, 

Clip info:
 Release date: Songspk.LINK
 album_artist: Various Artists
 album: Kapoor & Sons (Since 1921)
 artist: Tanishk Bagchi, Arijit Singh & Asees Kaur

 composer: Amaal Mallik | Songspk.LINK
 disc: 1/1
 encoded_by: Lame
 genre: Bollywood Music
 title: Bolna - Songspk.LINK
 track: 1/1
 EpisodeID: Songspk.LINK
 copyright: Songspk.LINK
 TOPE: Amaal Mallik | Songspk.LINK
 TIT1: Songspk.LINK
 TIT3: Songspk.LINK

I have implemented this partially to collect streamtitle from radio streams and also song title for local files.

Any chance of windows version?

OOPS, just noticed your Not being developed notice.

However, yourlink to the node mplayer has saved the day! :)


I have spent many, many hours trying to find a node implementation of an audio player.

I'm guessing there is some fundamental reason why this isn't being done.

So, more in hope than expectation was just wondering if you had any plans?

I know I can run mplayer by exec or childprocess or some such (same as I can for mpg123), but having the play, pause, stop, mute and volume controls is tricky - aka I don't know how :(

:)

Gordon

setPlayList

Hello!

Do you have plans to implement a setPlayList method?

It would be nice to have to ability to use node-mplayer to play radio stations.

Regards,

Sergio

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.