node-airplay icon indicating copy to clipboard operation
node-airplay copied to clipboard

browser.getDevices() doesn't find my Airport Express

Open jeena opened this issue 12 years ago • 2 comments

Hi,

I have bought a Airport Express to be able to listen to music from my computer in my living room. So naturally I wanted to play a bit with it too and I found this project. I installed the airplay module and tried the example code but even if I can play music on the Airport Express from iTunes, node-airplay doesn't discover my Airport Express:

> var browser = require('airplay').createBrowser();
undefined
> console.log(browser.getDevices());
[]
undefined

I just get an empty array. What am I doing wrong?

jeena avatar Jun 09 '12 08:06 jeena

It seems that airport express uses AirTunes which uses raop not airplay (browser.js, line 13) - RTSP (the protocol) is different than HTTP and would require quite a few changes, I imagine, to make this script interoperable.

lemieuxster avatar Sep 26 '12 22:09 lemieuxster

Yeah it's unfortunate that they use totally different protocols. It'd be fun to have a node-raop project (if one doesn't exist), then any project looking to use this could abstract out the protocol (and also add upnp/etc).

benvanik avatar Sep 26 '12 23:09 benvanik