I found PMS over christmas and have already had many happy hours of video streaming.
I'm keen to see a Spotify plugin for PMS so that I can browse my Spotify playlists from my PS3
So, I've done the work to make a java wrapper for LibSpotify that should help make that a reality.
The work is now uploaded to these open-source projects:
libspotify++ - a C++ wrapper for LibSpotify http://code.google.com/p/libspotify-plusplus/
jlibspotify - a java wrapper for LibSpotify (via LibSpotify++) http://code.google.com/p/jlibspotify/
Would any PMS experts here be interested in making a PMS plugin around these classes?
I'll offer up these little tit-bits of information to anyone who is interested:
* You'll need to download the LibSpotify library from Spotify.com (I tested with version 0.0.6 http://developer.spotify.com/en/libspotify/overview/
* You'll need to get your own Spotify username/password, and your own AppKey from Spotify.com - I've only tested this with my spotify premium account
* You'll need to compile up libspotify++ as a static lib - I have only tested in locally on Windows 7
* You'll need to compile up jlibspotify's C++ source as a dynamic library (linking libspotify++ statically) and its' java code as a java package - I have only tested it locally on Windows 7
* There is a small java test app in the jspotify source ( Spotify.Test ) - just add your own username/password, appkey and cache/settings directories and it will iterate through your playlists, dump them to your TTY, and then try to play the first track in your first playlist.
* To use jlibspotify start by making your own subclass of Spotify.Session, and then override the callback functions that you're interested in (i.e. OnGetAudioBufferStats() and OnMusicDelivery() for audio playback )
Last, but not least..
* Spotify.Session loads the libspotify DLL in its' static initializer. It seems to be perfectly fine in my simple java test apps, but has failed with spectacular Java Runtime crashes whenever I try to load it as part of a plugin for PMS. Perhaps I'm doing something stupid, or perhaps there's a DLL clash with PMS?
* The same DLL loading code also fails when trying to 'debug' my test apps from Eclipse, it is perfectly fine if you 'run' them from eclipse or from the command line.