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: RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Koying - 2012-10-06 (2012-10-06, 13:21)Montellese Wrote: (I don't wanna watch TV at all ever).+1 ;-) RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - RobertMe - 2012-10-06 Hi guys, I'm the dev. of the "outdated PR" for LiveTV support in JSON. I haven't looked at them in a long time Originally I wrote them to be able to use PVR in the XBMC Remote client for MeeGo for which I did some dev. work. But as I haven't done any dev. work on that remote client lately I also didn't invest time to update the PR. A couple of days back I tried to get some of the changes updated, but without success . I'll see if I can redo all the work on top of current master (as there has been a lot of changes lately in the Player things, and the current PR isn't based on master but on Lars' "JSON PVR" PR). But I guess I don't have enough experience with XBMCs code to get all the changes properly done (in time). Montellese, maybe we can join the efforts to get it in on time. As you're far more experienced with XBMCs code to get things properly integrated (the Start and Stop announcements which Lars only wants to be send when playback actually starts, for example). I've also already written some code a while back to get channel listings and the like, but these are incomplete. What do you think would be the best way to get our efforts joined? Discussing them in #xbmc-pvr (I have the same nick there)? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-10-06 I've started to look into your changes and will apply them to master. I'll push them once I got it compiling and will let you know. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - RobertMe - 2012-10-06 Okay, great If you'll need someone to test it (before pushing) I might be able to do so. Or send me a PM and I might be able to give you access to my TVHeadend server. I will check the state of the "read" operations I added to the PVR namespace (PVR.GetChannels and the like) and see if I can create a PR for them. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-10-06 The most important integration is probably to be able to use the Player methods also with PVR channels/streams. Anything else is nice to have IMO at this point in time (i.e. 4 days before feature freeze). RE: - yallah - 2012-10-06 (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. Hi When you have some time Montellese can you check this bug because doesn't work for me (with XBMC frodo Alpha7(4/10/12)) Work with video: {"jsonrpc": "2.0", "method": "Player.Seek","params": {"playerid":1,"value":"smallforward"}, "id": 1} Don't work for me in audio: {"jsonrpc": "2.0", "method": "Player.Seek","params": {"playerid":0,"value":"smallforward"}, "id": 1} RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-10-07 Hi there, I'm facing a little problem, I'd like to add playlist queue support for file mode, but as of today we need to know what kind of media we are dealing with to add it to the correct playlist. I suppose I can check the file extension to guess that but maintaining such a list to stay at the same level as Xbmc is not an easy task. The problem is the same and bigger for directories. If I remember correctly for the moment Xbmc does not support adding directory to playlist ? So the question is do you have an idea of how to allow such things to be handled ? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2012-10-07 Has a mixed dir (why would you do that out of interest?) ever worked? I may not be understanding you correctly but I just tried adding a folder to the playlist and it worked just fine. Admittedly, it was only an album folder but was not in my sources. You can add directories it just won't recurse them. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-10-07 The problem was more that a directory can contain lots of things But I suppose there's no easy way to handle playlist and arbitrary List.Item.File . RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Martijn - 2012-10-07 (2012-10-07, 15:37)Tolriq Wrote: The problem was more that a directory can contain lots of things Don't support file mode RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-10-07 Well I start to have quite some users of Yatse, and I'm really surprised by the number of users that use File mode over Library. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2012-10-07 I agree it's rather weird as the library is what I consider the main purpose of XBMC. I'm not sure if I still follow but here is what AWXi currently does. I have "Files" under music and video. With the GetFiles I specify "media" of either "music" or "video" ofc Then I know that all the files listed can be passed to the playlist. If people can't even separate music and video files, tough titty imo. But I'm sure I don't need to teach you how to suck eggs. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-10-07 (2012-10-06, 21:32)yallah Wrote: HiIt's not a JSON-RPC bug and I'm not sure if it is considered a bug. Since the merge of AE (which contained a complete rewrite of the music player) it is not possible anymore to seek within a playing song. (2012-10-07, 11:20)Tolriq Wrote: Hi there,I don't think I understand your problem/question. Can you re-phrase it please? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-10-07 Well all is related to the limitation of current Playlist system It's more or less the same problem about playlist.getitems that returns list.item.file that is then no more an known Xbmc database item. When using File.GetDirectory there's no way to know the returned file kind (video or music or picture) if not in database. So to then add them to playlist we need to guess if video or audio on client side. Perhaps getting a new field to know the kind of media would help. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - N3MIS15 - 2012-10-08 you can pass the media property in Files.GetDirectory so it only returns a certain media type.. |