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-13 Montellesse, is there a way to go directly to a playlist with json, e.g. John's 5 Stars RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-01-14 Define "go directly to a playlist". Do you want to play it or do you want to get it's content in your remote application or do you want to show it's content in the XBMC user interface? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-01-14 (2013-01-14, 00:10)Montellese Wrote: Define "go directly to a playlist". Do you want to play it or do you want to get it's content in your remote application or do you want to show it's content in the XBMC user interface? Sorry I didn't specify. I want to play it RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-01-14 If you know the exact path of the playlist, you should be able to pass it to Player.Open in the "file" property of the "item" parameter. Is it a smartplaylist or a custom m3u? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-01-14 (2013-01-14, 00:16)Montellese Wrote: If you know the exact path of the playlist, you should be able to pass it to Player.Open in the "file" property of the "item" parameter. Is it a smartplaylist or a custom m3u? It is a smart playlist created in XBMC named John's 4 Stars RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - kevinkelm - 2013-01-14 Is there any command to cycle through viewTypes? I don't see one in the wiki. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-01-14 Montellesse, I tried this, but no success Code: {"jsonrpc": "2.0", "method": "Player.Open", "params": { "item" : [ "playlistid" : 0 ] }, "id": 1 } I'm not sure how to populate the Code: [ "playlistid" : 0 ] Like I've stated previously, the playlist is a smart playlist that I created in XBMC and named "John's 4 Stars" I also went back and tried this Code: { "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "file": { "C:/Users/Livingroom/AppData/Roaming/XBMC/userdata/playlists/music/John's 4 Stars.xsp" } } }, "id": 1 } Still no luck RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-14 You need to open "special://musicplaylists/John's 4 Stars.xsp" RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-14 Is there a way to detect that the current player is full screen and if osd is shown or not ? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2013-01-14 Info boolean for fullscreen VideoPlayer.IsFullscreen http://wiki.xbmc.org/index.php?title=List_of_Boolean_Conditions I think you may be out of luck on the OSD. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-01-14 Thanks, so I guess there's no way to have one button behave differently between osd and fullscreen apart custom keymaps. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-01-15 (2013-01-14, 08:32)Tolriq Wrote: You need to open "special://musicplaylists/John's 4 Stars.xsp" Figured it out, thanks RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - wuench - 2013-01-18 It looks like JSONRPC stops responding when you Activate the Peripherals window. With the Peripherals window open JSONRPC.Ping stops responding, exiting the dialog in the GUI allows it to respond again. Has this been reported? I did a few quick searches but didn't come up with anything.... JSON-RPC Filter issue - thedroid - 2013-01-19 Hi, Code: {"id":1,"jsonrpc":"2.0","method":"AudioLibrary.GetAlbums","params":{"filter":{"and":[{"field":"album","operator":"contains","value":"pump"},{"artistid":6 }]},"limits":{"start":0,"end":6 }},"properties":["artist","thumbnail","genre","year"]}} Returns "Received value does not match any of the union type definitions" I am trying to search for a specific album name for artistid:6 Individually the filters work, but when and is used it fails with the above message Any suggestions? Thanks in advance RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2013-01-19 You are mixing your filters in a way not supported. Code: {"jsonrpc": "2.0", "id": 1, "method": "audioLibrary.Getalbums", "params": { "sort": { "order": "ascending", "method": "album", "ignorearticle": true }, "properties": ["artist", "genre", "rating", "thumbnail", "year", "mood", "style"], "filter": { "and": [ {"field": "albumartist", "operator": "is", "value": "future of the left"}, {"field": "album", "operator": "is", "value": "curses"} ] } } } Something like that you are trying to do? Artist is "future of the left" AND album is "curses"? Little pimp here. If you want an easy way to get advanced search use AWXi advanced search and capture the command in debug. As I did for the above. |