a few days ago i found out, that our remote server has an XML-Feature.
You can open a Socket (e.g. Port 8080) and send XML Requests to the Remote Server. Remote Server responds with an XML-Response (not very well formatted).
e.g. it's possible to request the current playlist or track infos or you can send a stop and or play command.
here is a little example:
Request:
<?xml version="1.0" encoding="ISO-8859-1"?>
<REQUEST command="getCurrentPlaylist" value="" />
Response:
<?xml version="1.0" encoding="ISO-8859-1"?><RESPONSE><PLAYLIST><TRACK name='(Do You Want To) Make A Memory' /><TRACK name='(don't Worry) If There's A Hell Below, We're All Gonna Go' /></RESPONSE></PLAYLIST>
My Dreams come true to control MC12 from everywhere (pda, mobile phone, touchscreen, ...) and i'm started my Web2.0/AJAX-projekt... I'm dreamed about something like this:
http://www.kavasoft.com/iTunesCatalog/example/index.php?lang=de with MC12 as Library Server and Java (with DWR) as bridge between html-Frontend and MC12.
... but Days later i'm a little bit disappointed.
Remote Server delivers not all information who i need and often crashes at several points.
So RS stops sending a playlist, when 100042 characters are reached... and crashes after a while.
When a song-title or artist has special characters like 'ä','ö','ß'... MC12 crashes too (see log)(command="getTrackInfo").
0006859: 3608: SDK: CMJAutomation::CMJAutomation: Global Count: 3, Main 0, 2f27d18
0006859: 3608: Playback: CDisplayPlugin::LoadPlugin: Start
0006859: 3608: Playback: CDisplayPlugin::LoadPlugin: Plugin: Cover Art
0006859: 3608: Playback: CDisplayPlugin::LoadPlugin: Finish (0 ms)
0006922: 3608: Playback: CPlayerZone::CreatePlaybackEngine: Finish (78 ms)
0006922: 3608: General: CLoaderThread::PerformAction: Waiting... (0 ms)
0006922: 3608: General: CLoaderThread::PerformAction: Finish (78 ms)
0006938: 3608: SDK: CMJCurPlaylistAutomation::CMJCurPlaylistAutomation: Global Count: 1
0006938: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (file size).jmd
0006938: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (file size).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (duration).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (duration).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (date).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (date).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (bitrate).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (bitrate).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (track #).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (track #).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (date created).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (date created).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (number plays).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (number plays).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (last played).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (last played).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (rating).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (rating).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (artist).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (artist).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (album).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (album).jmd
0006953: 3608: Reader: CLocalReader::OpenInternal: Opening: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (name).jmd
0006953: 3608: Reader: CLocalReader::Close: Closing: C:\Dokumente und Einstellungen\Messiahs\Anwendungsdaten\J River\Media Center 12\Connected Library\field (name).jmd
0006953: 2680: General: TopLevelExceptionFilter: Unhandled exception -- program crashing
Perhaps a JR-Member can fix this problems and can extend the xml-response with needed elements.
I don't have the skill and time to write my own xml-socket-server-plugin... so i hope these bugs will be fixed in the near future.
cherrs!,
Messiahs