2010-07-17, 10:10
Hi there I'm coding a remote control app in .NET C# for Windows. I saw on the Wiki the HTTP API is depreciated (Or will be in the near future).
So I'm going with the json api, after a lot of trial and error and reading this thread I've got a basic app up and running which can send/receive info from xbmc.
What I'm having trouble with now is pulling the album art of the currently playing song. I'm getting the audio playlist and identifying the current song, then the only method I can see that is even remotely related to getting artwork would be File.Download which is described as "Specify a file to download to get info about how to download it, i.e a proper URL". So I call File.Download on the current songs thumbnail field and I get this (My app log):
It's a bit frustrating as we're told not to use the http api but then there's no real doco for the json api Can someone please tell me the correct params to pass for File.Download ?
Layout blatantly stolen from Bram77's screen shot in this thread cause I'm not very creative lol.
So I'm going with the json api, after a lot of trial and error and reading this thread I've got a basic app up and running which can send/receive info from xbmc.
What I'm having trouble with now is pulling the album art of the currently playing song. I'm getting the audio playlist and identifying the current song, then the only method I can see that is even remotely related to getting artwork would be File.Download which is described as "Specify a file to download to get info about how to download it, i.e a proper URL". So I call File.Download on the current songs thumbnail field and I get this (My app log):
Code:
7/17/2010 8:03:19 PM - Invoking: {"jsonrpc":"2.0","method":"AudioPlaylist.GetItems","id":1}
7/17/2010 8:03:19 PM - Invoking: {"jsonrpc":"2.0","method":"Files.Download","params":["special://masterprofile/Thumbnails/Music/c/cf23dc2e.tbn"],"id":1}
7/17/2010 8:03:19 PM - Invalid params.
It's a bit frustrating as we're told not to use the http api but then there's no real doco for the json api Can someone please tell me the correct params to pass for File.Download ?
Layout blatantly stolen from Bram77's screen shot in this thread cause I'm not very creative lol.