Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
SoundControl is a library for managing music players including iTunes, Spotify, Rdio and Pandora from Node.JS
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
README.md
package.json

README.md

SoundControl - Music Management

Introduction

SoundControl is a library for managing multiple music players including iTunes and Spotify (currently OSX only). The library lets you globally pause and resume music playback. It is used in the Sqwiggle desktop client for Mac and works well with node-webkit.

Installation

$ npm install soundcontrol

Usage

// pause all audio players
music.pause();

// resume playback in previously paused audio player
music.resume();

// you can also start and stop playback in a specific app
music.play('iTunes');
music.pause('rdio');

// there are also some utility methods that are used internally
// but are exposed as they may be useful such as:
music.isItunesPlaying(function(err, playing){
    if (playing) console.log('iTunes is currently playing');
});

License

This module is Copyright Sqwiggle 2013.

SoundControl is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with the software. More Information

Something went wrong with that request. Please try again.