• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 9
Web Server enhancements/improvements (to XBMC's built-in webserver for remote-contol)
#76
dave, am at work at the momment but get home @ 7am drop me a pm with your alterations (link to the file) and i'll do a compile and comfirm if you think yyou have it or want it tested.
Image
Reply
#77
ive fixed my pc now so i have been able to do my own compiles but i will give u a link asap wen its dun.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#78
Image good news everyone...
the changes i made worked,now if i type

http://xboxip/ i get the default http controls
and if i put http://xboxip/f:/audio/file.mp3 it downloads it.
im just workin on the folder list view it shows all the files but does link to them yet ive made the changes just need to finish work then test them, heres a pic of how it will look:

Image
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#79
just wanted to throw another idea into the mix. i'm guessing the goahead server that is built into xbmc exists because at the time it was free and simple to compile in, but it lacks some features that would make the xbox web interface much more robust.

the xbmc http api commands are great, and i am using them with much success with the javascript gui i am building to navigate playlists. to make these web applications even more powerful would require some kind of server side processing such as php. i don't want anything crazy, just the basic string parsing functions, and maybe some support for arrays.

for all intensive purposes, i suppose these types of functions can just be built in to the xbmc httpapi codebase??


php...
there is another free open-source webserver called lighttpd which supports php, but i'm thinking it will not work because it requires some linux libraries which xbmc probably can not provide. http://lighttpd.net/

another option might be to compile php as a cgi script and run it on the goahead server.

i'd be intrested in talking with the other developers to see how we can improve the webserver built into xbmc to make it more robust. i finally have a build machine setup so i can compile xbmc from cvs, so i'm willing to try anything.



Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#80
the good thing with goahead is it doesnt require alot of mem and although its good to have a web server there to control xbmc and stream files etc theres no real need for anything else, remember it is a media center
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#81
ok so its kinda working, i have noticed a few small bugs, ok well not quite small. its working fine apart from files/folders with spaces in  :veryangry:
but any whoo heres a screen:
Image
Image
Image

im trying to find the problem with the spaces, weird thing is that it sometimes has the same problem on the orignal xbmc webserver.cpp
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#82
wow being awake can really help when writing code, ive looked over the code at work and i think i no the problem. im gona try it wen i get home.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#83
diagdave, thats great.
it shows the fildes and folders list.
did it hrefs them?

if i manually put xbip/example.zip into mz browser (illegal what browser) it wants to download in mz xbmc too.

the magic is done by dynamically showing files n folders and linking them.

wlan is going into nearly every hardware and with your magic work done, xbmc is giving all files by simple html to all devices wich supports html and even my smartphone does.

did you achieved the solution or did it dynamically link the files and folders?
and by the waz... thanks for your afford. at work too :-)

bye
Reply
#84
its all created dynamicly.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#85
diagdave, do you have a patch so i can try this ?
also i recall you discussing this with spiff on irc, did you both find a suitable solution ?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#86
im working on it and yea i did make it alot better now, only one handler and not to much change to the webserver.cpp, kinda big change to the goahead lib though but depends what you call big id say its not too big, alot is taken up with the list of mimes
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#87
sweet looking dave!
Image
Reply
#88
ok here it is:
this is the lib's for goahead prebuilt (not using xdk)

prebuilt

and the source:

source

either compile of extract the libs and place in the xbmx/xbmc/libs/libgoahead folder then add the webserver.cpp from here to the same folder and build. added a few more things. also would like to thank the quixplorer team. there php layout is the same as this and based upon there design.

to start browse to
http://xboxip/c:/
http://xboxip/d:/
http://xboxip/e:/
http://xboxip/f:/
http://xboxip/g:/

edit:

you will also need some image files that i have forgotten to include ill add them later



read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#89
oh and heres a screen:
Image



read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#90
ive tried to compile the lib on a pc without the xdk and it doesnt work. so does that mean it requires the xdk. if so should i remove the precompiled lib's. there not binarys. im so confused.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 9

Logout Mark Read Team Forum Stats Members Help
Web Server enhancements/improvements (to XBMC's built-in webserver for remote-contol)0