StackOverflowVeryHelpful
StackOverflowVeryHelpful

Reputation: 2427

What is the API in sonos which developers can use to play/pause/stop music

I was going through the documentation and was looking for the API's which i can call from a console application to play/pause or stop music. I am assuming Sonos is like Philips Hue which requires the devices to be in the same local network.

Any help would be appreciated. Thanks

Sonos API

Upvotes: 0

Views: 586

Answers (2)

ControlAV
ControlAV

Reputation: 319

See the UPnP specification for AVTransport, and use the Play/Pause APIs on the coordinating Player. And yes, for UPnP you need to be on the same network as the players.

Upvotes: 0

There is currently no supported way to do this, but it is something that we are working creating an API to do.

People have created libraries for this type of integration that can be found with a quick Google search, but none of these are supported by Sonos and there is no guarantee of future compatibility.

Upvotes: 1

Related Questions