Kodi Community Forum
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)

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


- jmarshall - 2006-05-30

nope - other side of the planet.

i think i forgot to pop the fix in the changelog - i fixed it a few days back anyway.

there's a better fix in now (combination of my fix + your fix) Smile

cheers,
jonathan


- TeknoJuce - 2006-05-31

thanks guys nad ur back! now make the httpapi run smoother for 2.0 :p good to see you're alive and kicking kraqh3d n0ice congrats on the new house!


- Nuka1195 - 2006-06-12

hi nad,

would it be possible to have sendkey work without the webserver running?

also if that is possible, could an optional parameter be added to it for windowid?

thanks


- nad - 2006-06-13

nuka: it really does need the webserver running. what is the problem with having it running?
what are you trying to do with the windowid?

tecnojuce: can you give an example where the smoothness is causing a problem?


- Nuka1195 - 2006-06-13

nad, it's not that it's a problem, but some people including myself don't usually run the webserver.

what i'm trying to do is keymap a button that launches a custom*.xml file. that file is a type dialog. the default button in this file has an <onfocus> event that launches a script which is a dialog class. when i exit the script i need the custom*.xml dialog to close also.

if the custom*.xml dialog was a type window all i would have to do is call replacewindow(id), but this doesn't close a type dialog. so i use the executehttpapi("sendkey") command. this command only works if the webserver is running.

what the window id was for, was to make sure the correct window received the sendkey.

if the webserver has to be running for this command to work, i will probably find another way.

what i was trying to avoid by doing the above was eliminating a lot of python code to animate and setting up static images. this can all be done in python, i have done all this in python, but it's easier and more flexible to be able to use the skinning engine for this.

i was just hoping that sendkey could be used without the webserver, like takescreenshot works.

thanks


- nad - 2006-06-16

nuka: i didn't realise you wanted to send the command from python. i'll check but sendkey should already be callable from python.


- Nuka1195 - 2006-06-16

it's callable from python, it just doesn't work without the webserver running.

some commands work without the webserver running. (screenshot...)

i was just wondering if there was a way for sendkey to work without the webserver running.


- nad - 2006-06-18

nuka: there is no reason that the webserver needs to be running for sendkey to work. i'll change the code accordingly and hopefully upload later today.


- nad - 2006-06-19

nuka: the change has been uploaded however i haven't tested sendkey from python so please let me know how you get on.

sending a key to an arbitrary window will require more work since the xbmc code seems to have been built around the assumption that all keys go to the current window.


- Nuka1195 - 2006-06-19

nad, it works great. thank you.

i don't think the window id is necessary. the correct window should have focus.

thanks again.


- mfennell - 2006-07-01

hey there. im in the process of writing a flash client (using the httpapi and ive been looking at the code by nad too to help)

unfortunately flash doesnt have a base64 stream to image conversion, and i was wondering if there is a solution that i can run on the xbox webserver to serve out the image as an image and not as a base64 stream....

im accessing it with xbmccmds/xbmchttp?command=filedownload&parameter=f:\...


- Livin - 2006-07-01

(mfennell @ july 01 2006,04:13 Wrote:hey there. im in the process of writing a flash client (using the httpapi and ive been looking at the code by nad too to help)

unfortunately flash doesnt have a base64 stream to image conversion, and i was wondering if there is a solution that i can run on the xbox webserver to serve out the image as an image and not as a base64 stream....

im accessing it with xbmccmds/xbmchttp?command=filedownload&parameter=f:\...
can you give more details on your plans for the interface (goals, etc)?

i'd been hoping that liquidice was going to finish his ajax interface, including the multi-zone audio control (controlling/syncing multiple xbmcs) but he seems to have disappeared... maybe you can take the reigns on that effort?


- mfennell - 2006-07-02

im building it as flash to run on my psp, but will have it so it will work across all, i like the multizone idea as well, and im keen to build a kick ass interface

Image

is where i am at at the minute just dynamically browsing the directories, what i do need is some help getting the image as a jpg from the album art (hence the post) and for the current playing track too. no doubt more questions will appear as i get deeper.






- Livin - 2006-07-02

i suggest you check out the ajax interface for some ideas on layout (not that it is perfect).

can the psp run ajax or just regular html & flash?
if you can make the psp into a "remote" for xbmc i may just but a psp. i'd love it to be able to mimic the xbmc screen so i can be in another room and have the psp be my wireless remote.

i cannot help on the rest, sorry... i'm definitely no coder.






- mfennell - 2006-07-02

im hoping nad, or kraqh3d can point me in the right direction as to getting an image from the base64 stream, either as a command i dont know of yet, or as a file that sits on the webserver converting the stream to a jpeg...


the ajax version doesnt have album images so doesnt really help me much .