XBMC Community Forum
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (/forumdisplay.php?fid=174)
+---- Thread: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC (/showthread.php?tid=68263)



- Montellese - 2011-04-26 17:25

noem Wrote:Is it me or:

Code:
{"method":"VideoLibrary.GetMovies","id":23,"jsonrpc":"2.0","params":{"fields":["thumbnail","file"], "limits":{"start":0,"end":93}}}

does not return thumbnail.... Sad

It is either you or a combination of your library and this bug you reported yourself because that exact request works perfectly fine for me.


- noem - 2011-04-26 17:57

Montellese Wrote:It is either you or a combination of your library and this bug you reported yourself because that exact request works perfectly fine for me.


I just got the latest git version today and except for that nothing changed the thumbs ware working fine til the update. well I will try to rebuild my DB.


- Montellese - 2011-04-26 18:01

What do you mean by "latest git version"? Did you download the latest nightly build (from yesterday) or did you get the source code directly from git and built it yourself? I tested it with the latest commit to git I just made a few hours ago and I got the thumbnail value returned for all of my movies.


- noem - 2011-04-26 18:10

Montellese Wrote:What do you mean by "latest git version"? Did you download the latest nightly build (from yesterday) or did you get the source code directly from git and built it yourself? I tested it with the latest commit to git I just made a few hours ago and I got the thumbnail value returned for all of my movies.

I compile it myself don't use the nightly builds. OS is the official xbmc live CD.


- noem - 2011-04-27 11:10

It was something on my side I had to rebuild my DB... don't know why but it helped Smile
Regards


- darwin - 2011-04-28 18:34

This seems like the right thread to mention a tiny patch I submitted for the JSON-RPC interface. It makes SeekTime take a double, so that you can.. seek in fractional seconds via the JSON-RPC interface.

http://trac.xbmc.org/ticket/11474

I was also wondering if anyone has discussed a version of XBMC.Play which takes start time in double seconds as an argument? I currently have to start the player and then seek in order to start playing at a particular time. The "resume" functionality of the main app seems to do something similar, so hopefully the underlying stuff supports it?

=darwin


- topfs2 - 2011-04-29 12:22

The underlying codes does play and seek Smile I am still somewhat unsure as to why a client would need it? If its to resume playback from last stopped it seems to me that what you want is to send a resume=true as xbmc is in a much better position to know from where to resume. If it is in an attempt to sync playback I doubt a client can do that an it.should probably start muted and seek a few times before it seems synced, again syncing is real hard to do without hardware access (need to take audio delay into account). I'd love toseesome use cases before I say if its sane to add Smile

Cheers,
Tobias


New Json - pfeifer - 2011-05-02 17:54

Hi,

I am playing with new Json

I send this command and retreive all the movieid

[HTML]s.send("{"method":"VideoLibrary.GetMovies","id":1,"jsonrpc":"2.0"}")[/HTML]

What is for e.g. the right command for retreive all the information for movieid 30?

Thanks in advance.

Pfeifer


- topfs2 - 2011-05-02 18:03

VideoLibrary.GetMovieDetails

If you plan to fetch details about most of the movies it might be better to just query for that directly in the first call though, as we get the information from the database no matter in the first call so you only save on network bandwith by not fetching them in the first go.


- pfeifer - 2011-05-02 18:14

Solved.