v19 Player.Seek syntax for Matrix 19rc1 check?
#1
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}
Reply
#2
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
Reply
#3
(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.

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

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!
Reply

Logout Mark Read Team Forum Stats Members Help
Player.Seek syntax for Matrix 19rc1 check?0