Posts: 20
Joined: Jan 2009
Reputation:
0
B3rt
Junior Member
Posts: 20
Hi,
Looking for some example which returns the player state on video and if possible also on audio.
So i want to know if the current video is on 'play' or 'pause, 'stopped' or maybe 'ended' etc
How can i get these playerstates using the api?
Thx for any help!
Posts: 20
Joined: Jan 2009
Reputation:
0
B3rt
Junior Member
Posts: 20
2016-03-07, 14:54
(This post was last modified: 2016-03-07, 14:57 by B3rt.)
No i want to know if the player is on play, start or stop
Not what is playing etc or to control the player,just reading the actual state, the api docu in the wiki does not return the player state itself, only media info.
I want to use this for a home automation system, so if a movie is playing (player state: play) then light off, when a movie is on pause i could set light on dimmed and when movie ended or stopped i could turn lights on again, i want to trigger/read this from the home automation, not by kodi itself, that is why i what to get it by api call.
To get this to work i have to know what the actual player state is, i cannot find this in the API manual, only the movie/media info (title etc ) is returned but not the player state itself.
So anyone an idea how i can get the actual live player state?
Posts: 3,077
Joined: Jun 2009
Posts: 8
Joined: Nov 2015
Reputation:
0
friends, I am not managing to filter movies based on cast, property name. I can filter based on year but would like to filter based on the artist because the artist created filter and would like to use the name of each artist to find the films he participates.
I used this example json. can anybody help me ? (in my collection has a movie with actor this example.)
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "filter": {"field": "cast", "operator": "contains", "value": "Ben Affleck"}, "limits": { "start" : 0, "end": 75 }, "properties" : ["cast"], "sort": { "order": "ascending", "method": "label", "ignorearticle": true } }, "id": "libMovies"}
Posts: 1
Joined: Jun 2016
Reputation:
0
does anyone have the kodi command to query the player for the TV Show season cover art?
the command /jsonrpc?request={"jsonrpc":"2.0","method":"Player.GetItem","params":{"properties":["thumbnail"],"playerid":1},"id":"VideoGetItem"} returns the eppisode image but i want the season cover.
Thanks
Posts: 4
Joined: Jul 2016
Reputation:
0
please help me!
I do not know what to do! I want to visit the download subtitles( setSubtitleStream)
Who can help me write the code Json?
Thank you so much
Example:
{"Jsonrpc": "2.0", "method": "Input.ExecuteAction", "params": {"action": "pause"}, "id": 1}