(2021-01-22, 10:54)howie-f Wrote: EDIT: by sending json:
{"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"movieid":2},"options":{"resume":true}},"id":1}
i can resume movie id 2 in the db without really knowing the resume point.
Maybe Official remote could also fire this to achieve what we want
Simply adding sleep(1) after "Player.Open" and before the "Player.Seek" command helps in my case. But of course this will not really be reliable ...
The "Player.Open" command in the RemoteApp looks like this:
cpp:
jsonRPC callMethod:@"Player.Open" withParameters:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys: [item objectForKey:@"playlistid"], @"playlistid", [NSNumber numberWithInt: 0], @"position", nil], @"item", nil]
Adding the "resume" part it looks like follows, but this still does work. The movie again justs plays from the start.
cpp:
jsonRPC callMethod:@"Player.Open" withParameters:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys: [item objectForKey:@"playlistid"], @"playlistid", [NSNumber numberWithInt: 0], @"position", nil], @"item", [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], @"resume", nil], @Options, nil]