![]() |
v19 Player.Seek syntax for Matrix 19rc1 check? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: v19 Player.Seek syntax for Matrix 19rc1 check? (/showthread.php?tid=359892) |
Player.Seek syntax for Matrix 19rc1 check? - houser - 2021-01-17 Hello, I recently noted that the Player.Seek syntax appears to have been changed a little for Matrix. https://github.com/xbmc/xbmc/pull/15939 Below are my experimental versions which work, but not sure the thinking is optimal. Also not sure about syntax with spacing. Grateful for any hints on optimal syntax. 10 min forward (works): {"jsonrpc":"2.0", "method":"Player.Seek", "params": { "playerid":1, "value":{ "seconds": 600 } }, "id":1} 10 min backward (works) {"jsonrpc":"2.0", "method":"Player.Seek", "params": { "playerid":1, "value":{ "seconds": -600 } }, "id":1}: 50 percentage (works) {"jsonrpc":"2.0", "method":"Player.Seek", "params": { "playerid":1, "value":{ "percentage": 50 } }, "id":1} RE: Player.Seek syntax for Matrix 19rc1 check? - crawfish - 2021-01-17 That's the syntax I've been using since v18, at least for "seconds." I don't use "percentage." You can use whatever spacing is clear to you. I just verified that positive seeks under 60 seconds work properly in Matrix RC1. In v18, it would seek from the beginning of the video. There was an issue reported on this, and amusingly, the author said the recently removed "ambiguous" syntax avoided that problem: https://github.com/xbmc/xbmc/issues/15865 RE: Player.Seek syntax for Matrix 19rc1 check? - houser - 2021-01-18 (2021-01-17, 22:29)crawfish Wrote: That's the syntax I've been using since v18, at least for "seconds." I don't use "percentage." You can use whatever spacing is clear to you. Thanks @crawfish, appreciate it. Yes, I also just noted that Leia searched from start for positive less than 60 secs. using this syntax. Percentage also appears to work as quoted above fwiw. Vital for things like a playbackbar with relative search and such in my setup. Ah well. Waiting for the Libreelec branch. Thanks again! |