(2013-11-08, 22:50)jmarshall Wrote: @EtgarDizz: See SaveFileStateJob.h. That saves the resume point.
It's retrieved in CGUIWindowVideoNav::LoadVideoInfo() I think it is.
To reset, you can do it via JSON-RPC most likely - it's a matter of setting the resume bookmark back to 0.
@jmarshall:
Thanks for the idea, it certainly made me dig into the JSON-RPC protocol and learn a lot from it
However, I don't think this can be accomplished via the current RPC version -
The
VideoLibrary.SetMovieDetails method doesn't support "resume" in its parameter list. Moreover, I called
JSONRPC.Instrospect and searched through the API, and the only reference to "resume" I could find is in retrieving information.
I was, in fact, able to get the resume info from a specific movie:
Code:
Request:
{"jsonrpc":"2.0","id":1,"method":"VideoLibrary.GetMovieDetails","params":{"movieid":20,"properties":["title""resume"]}}
Response:
{"id":1,"jsonrpc":"2.0","result":{"moviedetails":{"label":"Live Free or Die Hard","movieid":20,"resume":{"position":1854,"total":6319},"title":"Live Free or Die Hard"}}}
...but that's not what I'm looking to do
I think I'm gonna start reading on how to accomplish this via Python.
BTW:
I think this parameter should be added to the next JSON-RPC version... why not?