Action ID seek() & Input.ExecuteAction
#1
Hi,
I'm trying to understand the Action ID "seek".

From the Action ID wiki page:
Seek(##) A definable seek action, where ## is a number of seconds. For example, to make a seek action that goes forward 25 seconds use Seek(25), and to make a seek action that goes back 36 seconds use Seek(-36). (v15 Isengard addition)

So I tried:
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"seek(25)"},"id":1}

but it doesn't work. I get:
{"error":{"code":-32602,"data":{"method":"Input.ExecuteAction","stack":{"message":"Received value does not match any of the defined enum values","name":"action","type":"string"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}

Which I think is telling me that seek(25) isn't understood. Is it seek hasn't been implemented yet or I have my command set up incorrectly?
Reply
#2
The documentation you want is for the jsonrpc API, not whatever these Action IDs are a part of...
http://kodi.wiki/view/JSON-RPC_API/v6

Yes, your action value is not understood, that key's value should be of type Input.Action only,
http://kodi.wiki/view/JSON-RPC_API/v6#Input.Action

As you see using Input.Execute does not have fine granularity seek control, what you really want is Player.Seek
http://kodi.wiki/view/JSON-RPC_API/v6#Player.Seek
This will give you virtually full control of seeking
Reply
#3
I'm having the same problem as dullard.

"whatever these Action IDs are a part of" is the parameter for "Input.ExecuteAction" in the JSON-RPC API. I have no trouble using Action IDs, for example, "PageUp" and "PageDown".

(Actually, I had a small problem as the action IDs are case-sensitive and must be in lower case, contrary to http://kodi.wiki/view/Action_IDs )

"Player.Seek" does not give "virtually full control of seeking", it seems limited to seeking to absolute timepoints (% or H:M:S) or to the deprecated small and big jumps. There is no arbritary relative seeking.

The "seek(##)" Action ID looks like the only way to do what we want, but it does not work with Kodi 15.2.
Reply

Logout Mark Read Team Forum Stats Members Help
Action ID seek() & Input.ExecuteAction0