Comment 1 for bug 686314

Revision history for this message
James Tait (jamestait) wrote :

I realise this wishlist item is a little old now, but while looking through the music streaming bugs it caught my attention. There is nothing stopping people from implementing plugins for their media centre of choice to access their Ubuntu One Music Streaming - the API is open and documented.

There are two versions of the Music Streaming API. Version 1 was based on the Subsonic API v1.2, and is documented here:

  https://one.ubuntu.com/developer/music/stream_music/cloud_v1

Version 2 is completely rewritten and is documented here:

  https://one.ubuntu.com/developer/music/stream_music/cloud

For new projects, we'd recommend using the v2 API. It's more efficient than v1 in many respects, has fewer known bugs and is mostly self-documenting - you can actually navigate the responses in a browser. Authentication is handled with OAuth, so you just need to get a token (also documented) and you're away.

On the other hand, v1 is based on the Subsonic API, so subsonic clients should work with it. In practice, while hacking a simple client to use with XBMC, I've found there are a couple of bugs in the API implementation and I had to make a couple of tweaks - most notably because we stream from a different host to the one that hosts the API. The credentials story is a little messy, as it uses different credentials from the standard Ubuntu One login, but there is an API call to retrieve the music streaming credentials.

Hope this helps.