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) |
- Livin - 2005-06-30 pulp_136, i've been wanting someone with some programming savvy to make a "remote control" interface for xbmc. i also have a touchscreen and would love to use it. if you need a beta tester let me know! i also suggest using .net since you will easily be able to build the code once and compile it for both windows 2000/xp and windowsce since they all run the .net framework. i'm wondering though if maybe just creating/extending the web pages may be the best way to go instead of a stand-alone app... web pages are the most portable and could run on many platforms. or possibly even more "robust" is java controls... then any platform running a jvm could use it. this is the most robust, and the most complex, of course. - thor918 - 2005-07-01 Quote:or possibly even more "robust" is java controls... then any platform running a jvm could use it. this is the most robust, and the most complex, of course.not if the java runtime is older than what it is programmed in :p (just saying, there are some devices that is not upgradable that has old javaruntimes.) how is that web project you said that you where going to make? - Livin - 2005-07-01 someone already made a pm3 skinned version and has added some of the httpapi features. i'm not a good web developer so i hope someone that is can take on the task. - nad - 2005-07-02 i have at last created some proper documentation for the api. at the moment it is a word document that you can download here httpapi doc though it should probably go into the xbmc online manual. i will do this eventually but if someone with the skills (i don't have them) can translate and update the contents of my word document to wacko wiki i would appreciate it. perhaps a new page under the "advanced features" section? nad - Livin - 2005-07-04 @nad is there any way you can make the ppc client scalable? i have a 10.4" 800x600 screen on my wince device. as ppc screens get larger and wince gets put into various devices having auto-scaling would be helpful. i know other ppc applications have it so i thought i'd ask. - thor918 - 2005-07-05 i just seen the changelog. i'm happy see that development on the xbmc makes some big jumps sometimes. i see you have added a screenshot with download in one command. just an idea.but would it be possible to simulate a mouse x,y click on that screenschoot? a command that has x,y cordinate as parameter and then simulate the click there. i know xbmc has usb mouse support, i've tried it and it works good. it's just an idea. keep up the good work. - nad - 2005-07-05 affini: should be possible to get the controller to scale. i'll try adding it to the next version. thor918: that's what i am thinking about. if you look in the new docs i uploaded you will see that there is already experimental support (sendkey) for sending simulated mouse clicks over the api. it may be working now; i just haven't got around writing client side code. nad - thor918 - 2005-07-05 aha you have a secret plan :p remote connect to the screen with mouseclick and would that sendkey command allow to use pc keyboard at text input? aha i see that answer myself in your docs Quote:to send a keyboard event set buttoncode to f100 (hex) and add the required ascii value. this plan you have could be a killer keep up the good work! - nad - 2005-07-06 in fact my controller app has offered the ability to send keyboard input to xbmc for several months. there is a text box on the buttons tab. entering text into that box sends the corresponding characters to xbmc. i have now tested the new ability to send mouse events and it seems to work. i have only tested left button clicks so far. i don't have access to a real mouse connected to my xbox so i am not sure what other events are active in the xbmc gui. the xbmc mouse code processes the following events: left button clicks, middle button clicks and right button clicks; double clicks for all those buttons; scroll wheel; drag. the left mouse click seems to be able to do most things so i am wondering whether the default skin (project mayhem 3) needs any other mouse events. nad - pulp_136 - 2005-07-08 ok, i've spend my last evenings setting up the console (easier than i thought) with fantastic results. everything runs smooth movies (samba), music playlists, emus...in fact i wonder why didn't i use an xbox as a streaming client all those years. now i need to make a decision and i want to make the right one from the first time. should i use nad's api or http commands to control everything through the pc? i didn't find any command list for the webserver interface although it is supposed to be a developer help. i took a look in nad's .vb file and it is not clear to me if it can do the following: - ffw and frw in movies and music? - go to a specific position (in percent?) in movies and music? - move an item up and down in the music playlist? which of the two is the most complete solution (has more commands)? does nad's api base on webserver? again i would like to thank both nad and the webserver developer for their efforts. pulp - Livin - 2005-07-09 nads api makes the commands available via http. my personal take is i'd love to see someone come up with a standard web interface to act as a "remote control". i like that idea much better then the vb app simply becasue it is, mostly, platform independant when using a browser. - nad - 2005-07-09 pulp_136: my api does not currently offer a command to change the playback speed (ffw, frw) but i'll add that shortly. the other functionality you mentioned is already there. have a look at the docs i mentioned a few posts back. my api's purpose is to offer functionality to a client device (e.g. pc, pocketpc etc) through a conventional programming language e.g. vb, c, java in fact anything that can send http network messages. i have also uploaded to sf a demo of how to call the api from excel. these apis can also be called from within web pages but not in such a convenient way as asp commands. for this reason i have just started making the same httpapi commands available through asp - uploaded to csv today. please see the csv changelog for more information and my documentation (which i updated today). nad - Livin - 2005-07-09 nice! now we need to recruit an asp guru. - ryan123 - 2005-07-10 where can i download it sourceforge doesnt have a link to download - nad - 2005-07-10 the client and httpapi docs can be found here: xbmc files. nad |