Friday 19 May 2017

Electron Node.js module for controlling Spotify+iTunes on macOS

Hey,Here's another module I wrote for use in one of my projects: node-osx-mediacontrol.It aims at allowing a client to listen for playback events on Spotify or iTunes (play/paused/stopped) and allowing playback control (start playback, pause, stop, etc.)In this first version you can hook up a callback to receive playback state from iTunes, as well as play/pause iTunes. I thought I'll publish it early and then add functionality, that way everyone can (if they want) contribute very early on.node-osx-mediacontrol is available via npm (the github link is on the npm page)The project I'm using it in is DeviceCast: http://ift.tt/2qB9TsN's an app that allows streaming of macOS audio to either Chromecast or UPnP devices (Jongo speakers, or Raumfeld devices). It's a heavy state of flux, but streaming to Chromecast and Raumfeld works great.It's quite smart in that it will e.g. stop the streaming when iTunes stops or start streaming the audio to the most recently connected device when you start playing in iTunes, etc.Anyway, have a nice day everyone.

Submitted May 19, 2017 at 02:44PM by FedExFacto

No comments:

Post a Comment