JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - 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: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC (/showthread.php?tid=68263) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - calor006 - 2013-11-12 (2011-09-28, 17:40)Montellese Wrote:jasonvp Wrote:Can you please give me an example for "Player.Seek" params (percentage)? It's driving me nuts. Hello, Could someone give me an example of how to use the specific time value? as opposed to a percentage. I have been all over this page and others, http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Player.Position.Percentage , but to avail. Thank you for your time. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2013-11-12 (2013-11-12, 23:24)calor006 Wrote: Hello, Seek to 10%: Code: {"jsonrpc":"2.0", "id": "libSeek", "method": "Player.Seek", "params": {"playerid": 1, "value": 10}} Seek to 1h23m45s: Code: {"jsonrpc":"2.0", "id": "libSeek", "method": "Player.Seek", "params": {"playerid": 1, "value": {"hours": 1, "minutes": 23, "seconds": 45, "milliseconds": 678}}} RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-11-13 Finally found the time to update the list of changes from the last 3 months: Version 6.6.1 September 13th 2013: Commit: 97c236ff469da8dc63394754f0e320d1893f0a1b fix Playlist.Add/Insert not working with "directory" Version 6.6.2 September 14th 2013: Commit: f809499d80d93be3ced9c973af116cbdbe83db51 fix "file" property not working in AudioLibrary.GetSongDetails Version 6.6.3 October 30th 2013: Commit: 4a57f591e6db57864c888bbc327bb335dd2241ef fix "limits" for PVR.GetChannels Version 6.7.0 October 31st 2013: Commit: 47cbe448c5ca49f7ecbe1fbec6e0d84605825a18 PVR: add GetBroadcasts and GetBroadcastDetails Version 6.8.0 November 2nd 2013: Commit: e97d8407d9bc30fe31ada381ca99bf24bf0253a4 GUI: Add SetStereoscopicMode, GetStereoscopicMode and property stereoscopicmode to GetProperties Version 6.9.0 November 2nd 2013: Commit: 34984dd19509c21112a22d57edd9584db47dac1d Add Textures namespace with GetTextures and RemoveTexture Version 6.9.1 November 3rd 2013: Commit: e395cac8a376becbd98f4c972fe6ac93e7f4962d VideoLibrary: add possibility to remove artwork from video items Version 6.10.0 November 3rd 2013: Commits: f471af0cc1ee4f250faa5acf06b549e65188c29f, 0f5d486e56e154f0bc627db3dfda390da242b65e VideoLibrary: add seasonid, GetSeasonDetails and SetSeasonDetails Version 6.11.0 November 3rd 2013: Commit: 1b7dbe5b4d13573e90e0dd0a2cf2b16d8bd83c35 add support for multiple items to Playlist.Add/Insert Version 6.12.0 November 3rd 2013: Commit: 85bfca08835d489877f4fa3bd47b74f1da179e31 add VideoLibrary.SetMovieSetDetails Version 6.13.0 November 11th 2013: Commit: 85bfca08835d489877f4fa3bd47b74f1da179e31 Add Settings namespace with GetSections, GetCategories, GetSettings, GetSettingValue, SetSettingValue and ResetSettingValue RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - yallah - 2013-11-13 Hi did you get some times to add this function (resize thumbs). perhaps in Textures.GetTextures or "GetMoviesDetails" / "GetEpisodesDetails" thx (2013-05-01, 15:48)Montellese Wrote: Nope there's no custom image resizing yet but it's still on the TODO list. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-11-16 Just discovered a strange bug with JSON. Code: {"id":1,"jsonrpc":"2.0","method":"VideoLibrary.GetTVShows","params":{"limits":{"start":0,"end":1500},"properties":["episode","genre","rating","originaltitle","studio","year","plot","title","playcount","art","dateadded","mpaa","lastplayed","sorttitle","cast"]}} Send back playcount field with the actual number episode watched like 92 and field episode contains the actual number of episode so need to substract the values to know the show watched status. when sending : Code: {"id":1,"jsonrpc":"2.0","method":"VideoLibrary.GetTVShows","params":{"limits":{"start":0,"end":1500},"properties":["episode","genre","rating","originaltitle","studio","year","plot","title","playcount","art","dateadded","mpaa","lastplayed","sorttitle"]}} I.E. same request without cast Then playcount is sendback as 1 or 0 depending on the actual played status of the show or not. This is a quite inconsistent behavior leading to some troubles RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2013-11-18 (2013-11-10, 19:02)Montellese Wrote: Thanks for the detailed description. The problem is not in the webserver but in the way the paths are handled by the texture caching logic. I'll try to get jmarshall to look into it. I opened a ticket so that it can be tracked. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2013-11-19 (2013-11-06, 18:46)Montellese Wrote: Looking at the code it seems that we throw away filters that contain no or an empty value which could explain this behaviour. Just so it remains on the radar, I've raised ticket #14702 for this issue. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2013-11-19 Not sure which commit has caused this, but with a very recent xbmc master (up to and including 93077e6cf0a445ef439e51d54592a3c339873fd9), any call to Files.GetDirectory will result in an unhandled exception: Code: 08:41:27 T:2852652112 DEBUG: JSONRPC Server: New connection detected I've ruled out PR:3671 - still getting unhandled exception without this patch. Pretty sure this has been introduced sometime since 12/13 Nov - sorry can't be more precise. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-11-19 (2013-11-16, 21:12)Tolriq Wrote: Just discovered a strange bug with JSON. Thanks for the report. I tracked down the problem but will have to see how best to fix it. EDIT: Mind creating a bug report on track for it as it's easier to keep track of those than of forum posts. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-11-19 (2013-11-19, 14:26)Montellese Wrote:(2013-11-16, 21:12)Tolriq Wrote: Just discovered a strange bug with JSON. http://trac.xbmc.org/ticket/14703 RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2013-11-20 (2013-11-19, 10:42)MilhouseVH Wrote: Pretty sure this has been introduced sometime since 12/13 Nov - sorry can't be more precise. I've just rebuilt OpenELEC with tip of xbmc master (cca24dd24e5873f18a65e9de2f15020b92e93858) and now instead of an unhandled exception, it's returning a JSON error: Code: 2013-11-20 03:22:37.658858:MainThread: libDirectory.JSON SOCKET REQUEST: [{"id": "libDirectory", "jsonrpc": "2.0", "params": {"directory": "nfs://192.168.0.3/mnt/share/media/Video/TVShows/The Big Bang Theory"}, "method": "Files.GetDirectory", "properties": ["file"]}] I've been able to reproduce in Ubuntu 12.10 too. All the other JSON methods seem OK, just not this one... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - edrikk - 2013-11-20 Hi, I've got a question about player.open which I can't figure out... I have created a few .strm files which point to some ip cameras in the house. I can open the files perfectly fine in XBMC, and they work. However, these files (although a part of my sources.xml) are not in the library (I don't want them there)... They have been set with a blank 'type'. I'm wondering if there is a way for me to call player.open giving the api the full path/name of the .strm file to play? This way, I can program remote control keys to jump to the various streams.... Thanks! RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-11-20 (2013-11-19, 10:42)MilhouseVH Wrote: Not sure which commit has caused this, but with a very recent xbmc master (up to and including 93077e6cf0a445ef439e51d54592a3c339873fd9), any call to Files.GetDirectory will result in an unhandled exception: I tried to reproduce this on win32 but it worked fine for me. (2013-11-20, 07:02)edrikk Wrote: Hi, Have you tried the "file" property of the "item" parameter? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2013-11-20 (2013-11-20, 08:58)Montellese Wrote: I tried to reproduce this on win32 but it worked fine for me. I'm working on narrowing down the troublesome commit on Ubuntu, what it actually produces in the xbmc log in response to the GetDirectory request is: Code: 06:36:34 T:139653000718080 DEBUG: JSONRPC: Incoming request: {"id": "libDirectory", "jsonrpc": "2.0", "params": {"directory": "nfs://192.168.0.3/mnt/share/media/Video/TVShows/The Big Bang Theory", "media": "files"}, "method": "Files.GetDirectory", "properties": ["file", "art", "fanart", "thumb", "size", "dateadded", "lastmodified", "mimetype"]} RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-11-20 I know the cause of the problem of the "no matching source found" but that shouldn't cause a crash. |