Control and manage desktop audio players in Mac OSX
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.
$ npm install soundcontrol
// pause all audio playersmusicpauseAll;// resume playback in previously paused audio playermusicresume;// you can also start playback in a specific appmusicplay'iTunes';// there are also some utility methods that are used internally// but are exposed as they may be useful such as:musicisItunesPlayingif playing console.log'iTunes is currently playing';;musicisSpotifyOpenif open console.log'Spotify is currently open';;
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