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 - johnsills1 - 2013-01-11 Montellese, I have another question. Lets say for instance that I want to have a command take me directly to the Title screen of movies in the video library..... I've tried this command, but it doesn't work {"jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "videolibrary", "parameters": [ "movies" , "title"] }, "id": 1 } I think I'm messing up the parameters format. Thanks in advance for any help you can provide. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-11 http://forum.xbmc.org/showthread.php?tid=68263&pid=1218578#pid1218578 RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Millencolin007 - 2013-01-11 For the parameters have a look at http://wiki.xbmc.org/index.php?title=Opening_Windows_and_Dialogs and Chapter 11 Apendix I: List of Windows in http://wiki.xbmc.org/index.php?title=XBMC_Skinning_Manual RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - wuench - 2013-01-11 Previously I was using the HTTP interface to access JSON and the EventServer. For Frodo I have now switched to the socket interface, but I am having a lot of problems with users not understanding how to enable access. Previous versions of XBMC had all the access I needed enabled by default in their builds. Is it possible to have the Enable External Access enabled by default? I don't see why that would be disabled, when HTTP and EventServer are enabled by default. I mean if I can go in via HTTP an use JSON by default why would using the socket interface be considered any less secure.... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-11 Http and Eventserver are disabled by default only some all integrated distributions like old openelecs have them activated but this is bad RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - kevinkelm - 2013-01-11 (2013-01-11, 08:36)johnsills1 Wrote: Montellese, I have another question. Lets say for instance that I want to have a command take me directly to the Title screen of movies in the video library..... I did it like this {"jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "videolibrary", "parameters": [ "MovieTitles" ] }, "id": 1 } RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-01-12 I have another idea that I would like to be able to do..... Can I add a 'parameters' field to {"jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "musiclibrary", "parameters": [ "playlists" ] }, "id": 1 } that will take me to a specific playlist and start playing the playlist automatically? I tried this but it didn't work {"jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "musiclibrary", "parameters": [ "playlists" , "John's 4 Stars" ] }, "id": 1 } I have several playlists for different individuals in the house. Instead of having to look at the TV Screen and browse to the playlist that I want to listen to, I could just send a command that automatically plays whatever playlist I want. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2013-01-12 Please use code tags. I handle playlists in AWXi if you want to take a look. Basically use GetDirectory. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-01-12 Montellesse, I've found a potential bug in XBMC...... When I am playing music and I have the screen up that shows Artist artwork (refreshing with a different image every few seconds) then I hit the "TAB" button which changes the screen to a different look and then "TAB" again, everything works fine As soon as the artist changes when the next song plays, the Artist artwork doesn't refresh to the new artist, it continues to display the first artist, no matter how many songs play through, the original artist artwork remains (refreshing with a different image every few seconds like it's supposed to, just the wrong artist) I hope that made sense. If you need a logfile, just let me know RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-01-12 (2013-01-12, 19:05)Mizaki Wrote: Please use code tags. I handle playlists in AWXi if you want to take a look. Basically use GetDirectory. I'm not sure what you mean by use code tags..... Any help is appreciated. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-13 Code tags as code tags in bbcode to correctly post in this forum so other users can read @Montellese : I'm trying to find up to date data on which fields does trigger additional database query to set a minimal one for faster sync but I'm not sure where to get the data. For movies for example : The introspect tells some fields (cast, showlink and/or tag field) The C code seems to add also streamdetails And if I remember well I think resume and now thumbnail now slows down the query too. (I have doubt about sets since it's now a 1/1 relation I suppose it's no more the case). So if you can confirm the fields or the way to identify them. Thanks RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-01-13 @johnsills1: code tags are [ code ] and [/ code ] around your code parts (without the spaces). @Tolriq: Yup that info might not be up to date because I changed it a while ago. Here's the list: movies: cast, showlink, tag, streamdetails, art, thumbnail, fanart tvshows: cast, tag, art, thumbnail, fanart episodes: cast, streamdetails, art, thumbnail, fanart musicvideos: tag, streamdetails You're correct on sets, they are a 1:1 relation now so they can be retrieved directly. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-13 Thanks Stupid question but is there any speed difference for asking art or just thumbnail ? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-01-13 I'm not 100% sure because the artwork caching etc is jmarshall's playground. Generally retrieving only thumbnail is probably a bit faster than retrieving artwork but if you e.g. plan to retrieve thumbnail and fanart you might be faster by just retrieving "art" which contains both thumbnail and fanart. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-13 Thanks will make some tries But I must admit that now that I have received my rpi all the Json / Database is just horrible on this little thing :p |