WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps - 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) +--- Thread: WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps (/showthread.php?tid=8760) |
- pulp_136 - 2007-07-02 thanks Nad xbmcCommand - List of Commands available anywhere? - NeoMorph - 2007-07-19 Is there a list of commands available anywhere. I'm trying to code up a new webserver interface and cant find the info anywhere (and I've searched everywhere I can think of). I've not done any ASP programming before today and trying to figure it out as I go along plus guessing what commands are available in xbmc webserver has been pretty much a treasure hunt... but still I now have a 90% working correct Pocket PC webserver skin. The only probs I have are also in the existing webserver (namely if you select an entry in a playlist xbmc plays that song then stops for some bizarre reason... then if you hit next it goes to the beginning of the playlist). Gotta admit it's been fun though... just need some more info is all... oh yeah and tidy up my sloppy coding. Thanks in advance. - jmarshall - 2007-07-19 Best place to look is the source xbmc/lib/libGoAhead/XBMChttp.cpp You can browse the source via SVN browse on http://sourceforge.net/projects/xbmc In addition to these, you can execute built in functions as well (using execbuiltin) which are listed in the wiki. Cheers, Jonathan - Gamester17 - 2007-07-19 Feel free to help keep the manual up-to-date while you are working on related topics: http://www.xboxmediacenter.com/wiki/index.php?title=List_of_Built_In_Functions http://www.xboxmediacenter.com/wiki/index.php?title=WebServerHTTP-API http://www.xboxmediacenter.com/wiki/index.php?title=The_Web_Interface http://www.xboxmediacenter.com/wiki/index.php?title=FTP_Site_Commands - pulp_136 - 2007-07-25 Nad the Api often crashes when I use the playFile command (about 1 in 10 times). The debugger reports an unhandled semaphore full exception at the shared sub "ReadCallBack(ByVal asyncResult As IAsyncResult)", line "allDone.Release()" with the description: "Adding the given count to the semaphore would cause it to exceed its maximum count." I use the 2007-06-17 (rev9336 ) build. thanks pulp - nad - 2007-07-30 Pulp: Has this just started? Would you email be xbmc.log. Thanks. - TREX6662k5 - 2007-08-27 Would XBMC and programs that use the HTTPAPI benefit from using persistent connections? - CrazyIvan - 2007-08-27 Has anyone use this to control an Xbox from another Xbox? I have speakers throughout my house wired up to a central receiver in the basement home theatre. I just put our xbmc xbox in the bedroom to watch movies etc. on our little LCD. It'd be awesome if I could use the bedroom xbox and TV to control another xbox in the basement that is feeding its audio into the whole house receiver. Then we could listen to mp3's on the nice bedroom inwall speakers rather than through the tinny TV speakers. I'd pick up 2 more xboxes for the kitchen and basement if I could do this. Thoughts? - TREX6662k5 - 2007-09-01 You could use a program on the computer, pocket pc or PSP to remote control the xboxes or Compile yourself xbmc with linksbox or Create a little script to remote control the xboxes in python for the xbox (quite easy) - pulp_136 - 2007-09-25 It crashed again with the same message (as mentioned in my last post) Here is my xbmc.log right after the crash: 03:42:37 M: 53305344 NOTICE: ----------------------------------------------------------------------- 03:42:37 M: 53284864 NOTICE: Starting XBoxMediaCenter. Built on Jun 17 2007 03:42:37 M: 53284864 NOTICE: Q is mapped to: F:\Apps\XBMC 03:42:37 M: 53284864 NOTICE: The executeable running is: F:\Apps\XBMC\default.xbe 03:42:37 M: 53284864 NOTICE: Log File is located: Q:\xbmc.log 03:42:37 M: 53284864 NOTICE: ----------------------------------------------------------------------- 03:42:37 M: 53284864 NOTICE: Unmapped drive T 03:42:37 M: 53284864 NOTICE: Mapping drive T to Harddisk0\Partition6\Apps\XBMC\userdata 03:42:37 M: 53284864 NOTICE: Setup DirectX 03:42:37 M: 53260288 NOTICE: Mapping drive C to Harddisk0\Partition2 03:42:37 M: 53260288 NOTICE: Mapping drive E to Harddisk0\Partition1 03:42:37 M: 53260288 NOTICE: Unmapped drive D 03:42:37 M: 53260288 NOTICE: Mapping drive D to Cdrom0 03:42:37 M: 53260288 NOTICE: Mapping drive F to Harddisk0\Partition6 03:42:37 M: 53260288 NOTICE: Mapping drive X to Harddisk0\Partition3 03:42:37 M: 53260288 NOTICE: Mapping drive Y to Harddisk0\Partition4 03:42:37 M: 53260288 NOTICE: Unmapped drive Z 03:42:37 M: 53260288 NOTICE: Mapping drive Z to Harddisk0\Partition5 03:42:37 M: 53260288 NOTICE: load settings... 03:42:37 M: 53260288 NOTICE: Mapping drive P to Harddisk0\Partition6\Apps\XBMC\userdata 03:42:37 M: 53260288 NOTICE: loading T:\guisettings.xml 03:42:37 M: 53092352 NOTICE: Getting hardware information now... 03:42:37 M: 53092352 NOTICE: Checking resolution 10 03:42:37 M: 53092352 NOTICE: Setting autoresolution mode 7 03:42:37 M: 53092352 ERROR: Error loading P:\advancedsettings.xml, no <advancedsettings> node 03:42:37 M: 53071872 NOTICE: Per AV pack settings are off 03:42:37 M: 53211136 NOTICE: q:\userdata\sources.xml 03:42:37 M: 53211136 ERROR: <files> tag is missing or sources.xml is malformed 03:42:37 M: 53211136 ERROR: <music> tag is missing or sources.xml is malformed 03:42:38 M: 46915584 ERROR: Window Translator: Can't find window myvideotitles 03:42:38 M: 47001600 NOTICE: Checking the Date! 03:42:38 M: 47001600 NOTICE: start dvd mediatype detection 03:42:38 M: 46936064 NOTICE: initializing playlistplayer 03:42:38 M: 46936064 NOTICE: DONE initializing playlistplayer 03:42:38 M: 46927872 NOTICE: load default skin:[Project Mayhem III] 03:42:39 M: 43855872 WARNING: use dashboard 03:42:39 M: 43012096 NOTICE: initialize done 03:42:39 M: 41955328 NOTICE: Running the application... 03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\home-myprograms\home-myprograms.png 03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Middle.png 03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Bottom.png 03:42:39 M: 41869312 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Top_16x9.png 03:42:40 M: 41848832 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\home-dvd.gif 03:42:40 M: 41848832 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\home-dvd.gif 03:42:40 M: 41652224 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Middle.png 03:42:40 M: 41652224 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Bottom.png 03:42:40 M: 41652224 ERROR: Texture manager unable to load file: Q:\skin\Project Mayhem III\media\Home_Top_16x9.png 03:42:46 M: 43556864 ERROR: Unable to connect to http://www.google.com: 0 03:42:49 M: 43556864 NOTICE: Webserver: Starting... 03:42:49 M: 43413504 NOTICE: XBFileZilla: Starting... 03:42:49 M: 42758144 NOTICE: Webserver: Started 03:42:49 M: 42098688 NOTICE: XBFileZilla: Started 03:44:09 M: 41881600 ERROR: Unable to connect to 66.102.7.99: 10060 03:44:09 M: 41877504 NOTICE: HDD: SMART is supported. 03:44:09 M: 41877504 NOTICE: HDD: SMART is enabled. 03:45:05 M: 42115072 NOTICE: 200 FTP SITE command called [command=HELP, args=] The App actions before the crash were the following: Right after turning on xbox (before network init) it sent the command sendRawCommand("getcurrentlyplaying()") every second. It timed out every time (I have reduced timeout to 1000ms). It seems to have crashed at the time the network was initialised. p.s. I'm fully aware of my probs with the skin. p.s.2 It tries to connect to google and some other address? Why? - pulp_136 - 2007-09-26 Nad, a correction: The App didn't send the getcurrentlyplaying command every second, but only once when XBMC API was still not loaded (it timed out). The error came without request, it seems to be reading events. I can reproduce this every time. I switch the xbox on, send a getcurrentlyplaying command through the api (it times out) and wait till the api crashes. pulp Cover Art over HTTPAPI? - NeoMorph - 2007-10-01 Is is possible to have the cover art show over the HTTPAPI interface? It's the only thing missing as far as I can see... - nad - 2007-10-05 NeoMorph: it depends on what you are trying to do. Look at the FileDownload and the FileDownloadFromInternet httpapi commands. http://www.xboxmediacenter.com/wiki/index.php?title=WebServerHTTP-API You can also have a look at the code for XBMCControl which is hosted on SourceForge's XBMC files page. If you are trying to do this embedded within HTML then there is a detailed discussion of this in the thread you are currently reading. Pulp: I sent you a PM Nad Can You Start Recording Via HTTPAPI? - NeoMorph - 2007-10-07 I'm getting on well with my interface to HTTPAPI and everything is starting to work how I want. Now what I was looking for was a way to start recording when a radio source is active (and stop the recording of course). I know you can do it from the xbmc gui but can't find a way to do it over httpapi. - spiff - 2007-10-07 use the builtin command playercontrol |