Thread Rating:
  • 0 Vote(s) - 0 Average
Json Player.Position.Percentage example help
#1
Has anyone got Player.Seek working with Player.Position.Percentage because i just want to restart the video from the start but cant find any example and am unable to modify the examples i can find to work (ie smallforward to percentage). I know this is possible from the wiki (http://kodi.wiki/view/JSON-RPC_API/v6#Player.Seek)

( {"jsonrpc":"2.0","method":"Player.Seek","params":{ "playerid":1,"value":"smallforward"},"id":1} )

This is what i have tried but i really dont know what im doing

{"jsonrpc": "2.0", "method": "Player.Seek", "params": { "playerid": 1, "value": " Player.Position.Percentage":0 }, "id": 1}
{"jsonrpc": "2.0", "method": "Player.Seek", "params": {"playerid":1,"value":{ "hours":0, "minutes":10, "seconds":0}, “id”:1}
{"jsonrpc": "2.0", "method": "Player.Seek", "params": {"properties": ["Player.Position.Percentage"]}, "id": 1}
{"jsonrpc": "2.0", "method": "Player.Seek", "params":{“playerid”:1,"percentage":0, “id”:1}

Any help would be great thanks Smile
Reply
#2
I should probably stop giving advice from the John as i don't tend to recall things off the top of my head very accurately but
first make sure your video player id is actually 1, not sure if it should be or not but I've caught video playing from I'd 0or it was reporting wrong.

then try:
{"jsonrpc":"2.0", "method":"Player.Seek", "params": { "playerid":1, "value":0 }, "id":1}

for the second one try including all the properties like milliseconds.

the 3rd is just wrong, as is the 4th
Reply
#3
Thanks!

{"jsonrpc":"2.0", "method":"Player.Seek", "params": { "playerid":1, "value":0 }, "id":1} Worked!! Big Grin

Yeah my player ID is 1, doesn't work otherwise... Tongue

Thanks a bunch!
Reply
#4
(2017-05-22, 23:44)NeoNator Wrote: Yeah my player ID is 1, doesn't work otherwise...

That's right. playerid is 0 for audio, 1 for video and 2 for picture slideshows.
Reply
#5
(2017-05-23, 11:51)ncarthy Wrote:
(2017-05-22, 23:44)NeoNator Wrote: Yeah my player ID is 1, doesn't work otherwise...

That's right. playerid is 0 for audio, 1 for video and 2 for picture slideshows.

That's not right. executing player is determined on the type of media file that is playing regardless if it has video or not.

Take the AppleItunes Podcast audio addon, here's your player feedback

[
{
"playerid": 1,
"type": "audio"
}
]

and there are others...
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Json Player.Position.Percentage example help00