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
|
- divingmule - 2011-02-16 I was wondering if we could get an AddToSlideshow and a ClearSlideshow ? - Montellese - 2011-02-16 panzaeron Wrote:@MonteleseCould you upload/send me that m3u file so I can test it myself? divingmule Wrote:I was wondering if we could get an AddToSlideshow and a ClearSlideshow ?Please create a feature request on our trac. - panzaeron - 2011-02-16 @Montellese The content of the m3u-file is equal, with streams or with mp3-files nothing works... Here is a link to the Radio.m3u-File: Radio.m3u But if the steps are ok, so could this a problem with my xbmc-installation? I use Ubuntu karmic with the dharma pvr version from dushmaniac... - archizor - 2011-02-18 Hi! I would like to know the fields i need to use to Get the status Watched / unwatched for the Movies en Tvshows saeson and tvshow episode ? Could you help ? thank's - Montellese - 2011-02-18 archizor Wrote:I would like to know the fields i need to use to Get the status Watched / unwatched for the Movies en Tvshows saeson and tvshow episode ? IIRC this info is currently not available through json rpc. Please create a feature request ticket on Trac. - grywnn - 2011-02-19 archizor Wrote:I would like to know the fields i need to use to Get the status Watched / unwatched for the Movies en Tvshows saeson and tvshow episode ?Use the field "playcount", and check if it's > 0. Works for me even on tvshow and season level. How do I remove one specific playlist item? - grifter - 2011-02-20 It’s almost 1:00AM here and I have been at this for hours. Forgive me if this is a stupid question but I thoroughly read this thread and the documentation as well as searched Google endlessly. How do I remove one specific playlist item? I need a way to remove one index out of the "VideoPlaylist" and I can’t find a command that would be equivalent to "Playlist.Remove". I think part of my confusion is that I don’t know what the difference between "VideoPlaylist" and "Playlist" are. Maybe there is a parameter for “VideoPlaylist.clear” to specify a specific item? Also does anyone know how can i turn on subtitles Via JSON_RPC? and how can i turn off subtitles Via JSON_RPC? - wuench - 2011-02-20 Tolriq Wrote:For those you can use eventserver Works well even if all JSON would be better. Does the Eventserver trigger the sound effects too, just like you were sending them from the keyboard? The HTTP Action commands don't. If possible, it would be great if the Action commands are added to JSONRPC they should trigger the sound effects. - dann0 - 2011-02-21 grifter Wrote:It’s almost 1:00AM here and I have been at this for hours. Forgive me if this is a stupid question but I thoroughly read this thread and the documentation as well as searched Google endlessly. Along the same lines, i would like to know how to start playing the AudioPlaylist at a specified item, not the first item. - Montellese - 2011-02-21 Ok as a lot of people are having problem using/modifying playlists over json rpc: The current playlist implementation/representation in json rpc has many (design) flaws and there are lots of unsupported things and it will hopefully be completely rewritten for the next release (if there's enough time). Until then it might be the safest approach not to use the Playlist methods (except SkipPrevious, SkipNext, GetItems, Clear, Shuffle and UnShuffle which should work as expected). We're sorry for the inconvenience and hope to provide a much better solution in the next version - archizor - 2011-02-21 grywnn Wrote:Use the field "playcount", and check if it's > 0.Thx man - archizor - 2011-02-21 hi, i would like to know all the xbmc Announcement like {"jsonrpc" : "2.0","method" : "Announcement","params" : {"message" : "ApplicationStop","sender" : "xbmc" } Do you know if there is a list somewhere on the "clouud" ? - grifter - 2011-02-22 dann0 Wrote:Along the same lines, i would like to know how to start playing the AudioPlaylist at a specified item, not the first item. Dann0 I think this should work (I have not tested this but the documentation says it should) {"jsonrpc": "2.0", "method": "AudioPlaylist.Play", "param" : 1,"id": 1} the value of param is the index of the item to play. - grywnn - 2011-03-01 One more thing for the playlist todo list: if you add some music to the music playlist by (pseudocode) AudioPlaylist.Add(songid:123) or simply start playback with a XBMC.Play(songid:123), fanart info isn't available through the MusicPlayer.Property(Fanart_Image) info label. It does show up correctly in AudioPlaylist.getItems, so i'd guess its just the info label that doesn't get set up properly. - gertjanzwartjes - 2011-03-01 grywnn Wrote:Hi everyone,I can confirm the behaviour as grywnn describes. It's actually more general. If an addon opens a keyboard window, all HTTP commands to XBMC will time out until the keyboard window is closed. This is not JSON-RPC specific, HTTP API commands will fail alike. Unfortunately, because this issue is so generic, this renders all remote control applications unusable when a keyboard window is opened from an addon. I'll update the trac ticket opened by grywnn as well. |