![]() |
|
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 |
- wuench - 2011-01-28 19:38 My thoughts were to have one interface for playback and direct commands to the active player. If I can get some sort of indicator that an external player is active (even better if I knew which one) then a play button, for example, could send the play command to the active player. One could just send all commands to all players, but that might have side effects on players/programs that are running in the background. - Montellese - 2011-01-28 19:49 As we're already talking about changes, just an FYI: We have added support for Batch requests (as described in the specification) and Announcements(called "notifications" in the spec; just requests with no "id" field which won't get a response). - topfs2 - 2011-01-28 19:54 wuench Wrote:My thoughts were to have one interface for playback and direct commands to the active player. If I can get some sort of indicator that an external player is active (even better if I knew which one) then a play button, for example, could send the play command to the active player. That actually just make me want to state even more that it shouldn't be possible. A client should never need to poke the external player by itself, xbmc should always relay, otherwise there is no way xbmc could keep track of the state (atleast no garantue). Heck, its even arguably a security risk. If we don't relay and the client know foo external player is running, it could try to hack that external player. Ofcourse this could happen no matter if we give the info but atleast there is some obscurity. Besides, any external player should behave for any client (and users) as an internal one. - wuench - 2011-01-28 20:30 Maybe I need to describe a little better what I am working on. I am writing a driver for Charmed Quark Controller (CQC) to control XBMC. CQC is a home automation control program capable of controlling various devices and applications. Along the lines of Crestron, Control4, HomeSeer, etc. Security in XBMC is not really a factor in this, that is between CQC and whatever other stuff it is controlling. CQC is the central controller in my scheme not XBMC. So I need to determine when XBMC has called out to an external player so I can direct commands at the other applications. I was just wondering if there was a way to do it using InfoLabels or Booleans, etc. Not asking you to implement anything. If necessary I can work on detecting when the other apps have focus or are running. It would just be nice to get that info from XBMC since it has the best idea of it's current state. - topfs2 - 2011-01-28 20:47 wuench Wrote:Maybe I need to describe a little better what I am working on. I am writing a driver for Charmed Quark Controller (CQC) to control XBMC. CQC is a home automation control program capable of controlling various devices and applications. Along the lines of Crestron, Control4, HomeSeer, etc. Security of xbmc might not be a factor for your stuff but it is in most cases, so this will not go in based on those needs, I need to have more reasons than that for it. XBMC is designed around being in charge of the system, its a framework if you will. It needs to have control and its designed to be the users input (and as such most likely most clients since they most of the time are triggered by users). I don't think there is any infobool or anything (for the same reasons, its not interesting for skinners and the likes) which expose which player is running. In your case, its really not a good idea if you redirect other apps to frak around with our external player I will give you one big reason for this, our statemachine is not going to be reliable. say we start playback and knows it is at X min. If you go in and pause outside xbmc unless the player actively tells us that it is at pause we will still think its at play. Say a skinner pops up controls on paused by design, you going in and pauseing will make the skinning wrong. Even worse, say xbmc tells it to pause and the player unpause. The whole statemachine doesn't work if you allow this type of stuff. Only way for you to do this would most likely be to parse the debug log. Use a wildcard as a parameter? - turbolag - 2011-01-28 23:19 Is it possible to use a wildcard as a parameter, for example, if I want to get a list of artists regardless of genre? - topfs2 - 2011-01-28 23:24 turbolag Wrote:Is it possible to use a wildcard as a parameter, for example, if I want to get a list of artists regardless of genre? No way to search but you can just omit the genreid and it will give you all genres - Tolriq - 2011-01-29 00:06 any chance to have a solution for getting the all seasons thumb ?
- Gotcha007 - 2011-01-30 02:17 HI guys, little question for you. I'm trying to send a notification on the XBMC screen with JSON but no luck. How do I do it with the code previously given into that topic? Code: import jsonI tried that but with no luck Code: python test5.py JSONRPC.Announce '{ "start", "end"}'Thanks in advance - topfs2 - 2011-01-30 03:26 Announce announces stuff to other clients, not to the screen. |