![]() |
|
WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: Development (/forumdisplay.php?fid=93) +--- Thread: WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps (/showthread.php?tid=8760) |
- nad - 2005-11-12 19:17 drongo: just uploaded the fix to the asp bug. - reimera - 2005-11-13 13:20 i have the same problem as kick in da door i tried editing the file manually , but i still get "no response using that adress. do you wish to try again." message , do u have a fix for this, or is there a previous version still up for download? nad can you help me? - pulp_136 - 2005-11-23 22:51 nad, i tried your vb6 api and it works well but the webserver hangs quite often. especially with the playlistnext command it hangs about every second time. it doesn't seem to close the connection and the only way out of it is an xbmc restart. is there anything i can do about it? the playlistnext command is the only way i found to simply start a movie (i'm not interested in movies playlists). i use a command sequence of clearplaylist, addtoplaylist, playlistnext. is there a more direct way to simply start a movie? thanks a lot - nad - 2005-11-25 20:12 pulp_136: you can just use the playfile command to play a movie without worrying about playlists. i'll have a look at what is causing the hanging that you are experiencing. it could be because you are adding a movie to an audio playlist. nad - nad - 2005-11-25 20:27 over the last week or so i have been communicating with reimera to fix his/her (sorry) problem with getting xbmccontrol working. reimera's problem is now fixed but if anyone else is experiencing problems ensure that: 1. using your web browser you can access xbmc from the device you are running xbmccontrol. 2. the address you used in 1 is the same as that used by xbmccontrol. 3. you have .net 1.1 sp1 or later installed. 4. you have the file xbmccontrol.exe.config file in the same directory as xbmccontrol.exe. 5. if you have set a password on the xbmc web server you add the password and username to xbmccontrol.ini.txt. 6. ensure that if a firewall exists between xbmccontrol and your xbox it is not blocking the required traffic. 7. if your xbox doesn't have a static ip address you don't have an inappropriately hardcoded ip address in xbmccontrol.ini.txt. 8. if you have installed a previous version of xbmccontrol you delete the whole xbmccontrol directory structure and start fresh. you shouldn't need to do this but this is what seemed to fix reimera's problem. nad - Kick In Da Door - 2005-12-01 19:54 i think i give up, think i tried everything u listed except im not sure on the dhcp static ip thing, when i changed to static xbox couldnt connect to internet , what do i put in the dns settings? here is my debug again. 12/1/2005 11:55:22 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=getcurrentplaylist ------------- 12/1/2005 11:55:22 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:22 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=getdirectory¶meter=e%3a%5cmy+music%5c ------------- 12/1/2005 11:55:22 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:33 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=setcurrentplaylist¶meter=0 ------------- 12/1/2005 11:55:33 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:34 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=config¶meter=getoption;pictureextensions ------------- 12/1/2005 11:55:34 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:34 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=config¶meter=getoption;videoextensions ------------- 12/1/2005 11:55:34 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:34 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=config¶meter=getoption;musicextensions ------------- 12/1/2005 11:55:34 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:34 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=setautogetpicturethumbs¶meter=false ------------- 12/1/2005 11:55:34 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:34 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=setcurrentplaylist¶meter=0 ------------- 12/1/2005 11:55:34 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:34 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=getplaylistcontents ------------- 12/1/2005 11:55:34 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:34 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=getguidescription ------------- 12/1/2005 11:55:34 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:36 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=setcurrentplaylist¶meter=0 ------------- 12/1/2005 11:55:36 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:36 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=config¶meter=getoption;pictureextensions ------------- 12/1/2005 11:55:36 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:37 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=config¶meter=getoption;videoextensions ------------- 12/1/2005 11:55:37 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:37 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=config¶meter=getoption;musicextensions ------------- 12/1/2005 11:55:37 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:37 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=setautogetpicturethumbs¶meter=false ------------- 12/1/2005 11:55:37 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:37 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=setcurrentplaylist¶meter=0 ------------- 12/1/2005 11:55:37 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:37 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=getplaylistcontents ------------- 12/1/2005 11:55:37 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- 12/1/2005 11:55:37 am -- getpage:http://192.168.2.70/xbmccmds/xbmchttp?command=getguidescription ------------- 12/1/2005 11:55:37 am -- getpagegeneralexception: the type initializer for "system.net.httpwebrequest" threw an exception. ------------- - nad - 2005-12-01 21:47 kick in da door: try deleting xbmccontrol.exe.config. if that fixes things then you have an old version of .net installed. if it does not fix it, send me a private message. nad - Kick In Da Door - 2005-12-02 17:36 (nad @ dec. 01 2005,19:47 Wrote:kick in da door:finally it worked,that did the trick , and this is seriously a good prgram to, thanx for ur help. u planning anything else withthis program? - nad - 2005-12-03 14:44 good to see that you got it working. i don't have any current plans for my client apart from maybe adding a .net version check at start up! the main reason for creating the client was as a demo of how to use my httpapi. i was hoping people with more creative/gui skills than me would use the api to create really impressive front-ends to xbmc. this is why i have also provided interfaces to the api through vb6, xbmc's python and asp, as well as even an excel client. i'm still hoping that this will happen. nad - LiquidIce629 - 2005-12-03 19:56 hi nad, great work on the api. i am currently developing a macromedia flash frontend for the xbox media center, and i'm having some trouble with the asp headers. as some of the posts above describe, i'm getting the http headers mixed in with the output of the page. http/1.0 200 ok server: goahead-webs pragma: no-cache cache-control: no-cache content-type: text/html having this text at the top of every http request is making it hard if not impossible to parse the output in flash. you said you posted a fix, but i'm not sure how i can get it. i do not have the tools or resources to make my own build of xbmc. is there a config file somewhere that i can edit, or does it have to be recompiled? i have most of the functionality working through the url calls, but there are some things that i will need to use asp for, such as getting file listings. ::edit:: i got it working using some ugly workaround code.. here it what it takes to bring the xbmc file listing into flash: Quote:function getfilelisting(){ although it would still be nice to get the http header fix for the asp scripts. |