Subsonic "Mini"

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Subsonic "Mini"

Postby braddyo » Fri Dec 26, 2008 10:29 pm

Sindre,

I don't know if you're ever used Box.net, but they have a cool flash interface for browsing your files. If you have music in any of your folders that you store on their site, you can play it, and it will continue playing all other music files in the folder you're in.

I run a blog and I would love to offer people surfing to my blog a small widget, perhaps in the footer or something, where they can see a default playlist that I specify, but also the ability to browse my music folders and play music from it.

Obviously the same principles should exist as witht he regular subsonic, where the admin can set up transcoding settings, download availability, etc.

A while back I posted about creating a Silverlight player, and this would be something I could help you out with if you want. I would need API calls to get the directory structure that's in Subsonic - it probably wouldn't be wise to have DIRECT access to the file system, but availability to Subsonic's file system. The ability to authenticate would be good as well if security is an issue, or the username and password could be given in the html of the widget/silverlight object.

API calls are really all that I would need to do this

-login, if you think it's necessary
-get directories (to build the directory tree in subsonic)
-get files in a directory - perhaps pass the directory ID and this call would return all the music files.
-get ID3 info - pass the music ID and get the artist, track, album, album art, etc
-get stream - pass the music ID and get a stream to play through the player
-get playlists - return a list of playlists
-get playlist - pass ID of playlist and get the m3u file
-get download

etc etc etc

I'm not dictating how you should write your API, but I really think an API will help Subsonic grow and have it not all be on your shoulders :) So, I'm willing to work on such a player if you are willing to open your API (or tell me the calls if they already exist).

Merry Christmas,

Bradford
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby sindre_mehus » Sat Dec 27, 2008 7:55 am

Bradford,

I agree 100%. I would love to have other third-party interfaces to Subsonic, and in particular a minimalistic RIA-type interface.

There is already a rudimentary XML API to Subsonic, as discussed here. It's sufficient to drive the Subsonic Mobile Player, and probably a simple "Subsonic Mini" as well.

If you or anyone else take on the task of making a third-party interface, I will shape up the XML API, provide schemas and documentation, add more API methods, etc.

Wishing you a Merry Christmas and a Happy New Year!
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby braddyo » Sat Dec 27, 2008 6:03 pm

Gah! Another project! I have so many that I'm working on, but I think this one will be easy to throw together. I will start on it this afternoon after I run some errands. I'll PM you if I have specific details, or if you want to start a thread dedicated to 3rd part development I can post there. Thanks for your response!

Bradford
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby braddyo » Sun Dec 28, 2008 5:56 am

I've thrown together a little something that will get the xml and create some objects in c#. I'm going to polish it a little tomorrow and hopefully have something that works a little to show a 'proof of concept'. But the api works beautifully so far and the xml is very simple. Do you have any experience in c#? If not, it is very similar to Java, and so it's at least readable to you.
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby sindre_mehus » Sun Dec 28, 2008 4:10 pm

Sounds good! Just take your time and let me know when you have something working.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 10 guests