2010-05-14, 16:50
As I'm just played with the jsonRPC, on the wTouch project ( you can see it on other thread ). I have a little suggestion and based on the included web on svn, file nowplaying.html.
imho, that is quite inefficient that to get the information for current playing is used 2 method. First to get type of media use Player.GetActivePlayers, then second step get media playlist by VideoPlayList.GetItems or AudioPlayList.GetItems.
In my case with wTouch, there is third step to get current time playing.
In my opinion, as getting info of what current play may a frequent used things, how about to make it more efficient, by calling a method you can get all the info, like MediaType, File, Title/Label, Plot, Thumbnail, current Time, total time, Play/Pause Mode.
Anyway, question, how to ask the XBMC play a media file. I'm thinking to use XBMC.Play but I do not know the parameter to input the filename.
imho, that is quite inefficient that to get the information for current playing is used 2 method. First to get type of media use Player.GetActivePlayers, then second step get media playlist by VideoPlayList.GetItems or AudioPlayList.GetItems.
In my case with wTouch, there is third step to get current time playing.
In my opinion, as getting info of what current play may a frequent used things, how about to make it more efficient, by calling a method you can get all the info, like MediaType, File, Title/Label, Plot, Thumbnail, current Time, total time, Play/Pause Mode.
Anyway, question, how to ask the XBMC play a media file. I'm thinking to use XBMC.Play but I do not know the parameter to input the filename.