![]() |
|
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: Development (/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (/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 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
- Montellese - 2011-11-14 11:11 Currently there is no parallelism or anything and every request is stalled until the previous request has been finished but in the future we are planning to handle requests in seperate threads. This makes it possible to execute fast requests while slow requests are still being processed (e.g. calling JSONRPC.Ping while VideoLibrary.GetMovies returns 1000+ movies etc). So if you want to be on the safe side (i.e. future proof) you need to wait till you got the response for the Player.Open request before sending the Player.Seek request. The JSON-RPC 2.0 specification states that it is not required to keep the order of requests even in batch requests. For the particular case of resuming playback I am planning to add a "options" parameter to Player.Open which will allow to specify a resume point. - Montellese - 2011-11-15 21:42 grywnn Wrote:Me againFinally got around to fix this bug in https://github.com/xbmc/xbmc/commit/d187b1c2197c4477ba22f5364a3044cc1be46045 so it should now behave as you expect it to. - grywnn - 2011-11-15 22:16 Montellese Wrote:Finally got around to fix this bug in https://github.com/xbmc/xbmc/commit/d187b1c2197c4477ba22f5364a3044cc1be46045 so it should now behave as you expect it to.Thanks a ton, will test and report tomorrow. - jimk72 - 2011-11-16 01:25 dwagner Wrote:I'm wondering if anybody else has run into this problem. I was having all kinds of problems like this with tcp. also had large requests(all artist, ect..) would be sent back in random chunks. I ended up switching over to http post ect.. that way I get the full response and it is only that response and then use the tcp to monitor for notifications. Most of them are very short so a custom parser to make sure it is only one notification was easy. All my problems related to JSON ended after that
- Blacksheep70 - 2011-11-16 16:32 A method to query if XBMC is currently idle (TRUE|FALSE) would be useful. E.g. to trigger special actions or maintenance on smaller machines when there is no media playing. I personally would use this method to shut down the system automatically after the system was brought up automatically (to record TV) via ACPI wakeup if no media is currently playing. Regards, Blacksheep - neoflex - 2011-11-16 16:36 Hi and sorry if this question has already been asked before. I hope I am wrong but it seems that there is no method in the JSON Api to get the list of audio playlists in the audio library. Something like AudioLibrary.GetPlaylists ? If it is the case, do you have plan to add this in the near future ? (if not I might give it a try but that could results in some ugly code )
- rossmohax - 2011-11-16 19:53 Right now neiher JSON nor HTTP api interface have feature to manually update DM. As if you added new video, then tries get its info and parser cannot recognise its name, then it ask you to enter name of video and then queries IMDB with that name. Right no to do that I have to have keyboard attached to linux box. I checked the code and it seems that there is no ready-made function which can be called from RPC handler, all "manual editing" of item name is done in GUI code. But it would be nice to have such option. - jimk72 - 2011-11-16 20:50 neoflex Wrote:Hi and sorry if this question has already been asked before. I access the directory the playlists are stored in and parse them. When one is selected I send each song from the list to xbmc using add to playlist then play that playlist. Works good for now. - neoflex - 2011-11-16 22:59 jimk72 Wrote:I access the directory the playlists are stored in and parse them. When one is selected I send each song from the list to xbmc using add to playlist then play that playlist. Works good for now. Thanks for the tip. I was looking for a more integrated solution to also integrate playlists from spotify but I can use a mix between both approaches maybe. Music playlists can be acceded through the http://***.***.***.***:8082/vfs/special://musicplaylists/***.m3u URL right ? but how can you get a listing of the files there ? - Montellese - 2011-11-16 23:02 neoflex Wrote:Thanks for the tip. I was looking for a more integrated solution to also integrate playlists from spotify but I can use a mix between both approaches maybe. Music playlists can be acceded through the http://***.***.***.***:8082/vfs/special://musicplaylists/***.m3u URL right ? but how can you get a listing of the files there ? Files.GetDirectory is what you are looking for if you wanna do the workaround. FooLibrary.GetPlaylists() will be added as soon as it will be possible to load m3u (and other file based) playlists into the Playlist namespace but that's not gonna happen for Eden. |