jishi / node-sonos-discovery

Simplified framework for Sonos built on node.js
MIT License
146 stars 75 forks source link

Support for sonos subs #14

Closed mattwelch closed 10 years ago

mattwelch commented 10 years ago

Added support for sonos subs. You can get them with methods similar to players (getSub and getSubByUUID), but a sub is also added as a property to the player object to which it belongs. So

var player=discovery.getPlayer('family room');

might have a player.sub attribute if the family room zone has a sub attached.