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 - 2008-01-05 12:32
Hi Kev: I have just tried with the latest build and your queries seem to work when sending from a browser:
Are you getting the wrong results returned or an error?
- KevMoore123 - 2008-01-05 13:16
Im not getting a response at all. When I look at my debug, i see <html>\n</html>. If I use that query in SQL Lite, i get rows returned. Is there a latest version of the HTTP API I can get hold of? Im not convinced my latest build is actualy a latest build .
- nad - 2008-01-05 13:35
Hi Kev: The latest version of the httpapi is in the latest version of xbmc
However, the SQL command hasn't changed significantly over the last few months apart from a change a few weeks ago with how the the escaped characters were handled internally. I guess this could be what you are running in to. Try executing a command that doesn't have the double %s
When you execute:
in a browser do you get the same <html>\n</html> response?
- KevMoore123 - 2008-01-05 13:54
the orderby query works ok.
the sql statement with "LIKE" returns no results when using
if I use no percentages, I get a repitition of the word "Muse"
- KevMoore123 - 2008-01-05 15:39
ive just downloaded 2.0.1 and compiled it, shoved it on the xbox and it works OK now. I clearly had a duff version on there cos the one I had was using <field> as a delimeter not <li>.
Sorry for hassling you
- Nuka1195 - 2008-01-05 15:40
Are you using a LIMIT in your sql statement?
There seems to be a bug when combining LIKE and LIMIT in sqlite, maybe other combinations.
Try switching to GLOB. GLOB is case sensitive though.
here's an example i use.
Edit: then nevermind
XBMS Issues with HTTP API? 2.0.1 - KevMoore123 - 2008-01-05 16:06
Me again. Another dumb question alert !!!
I am getting a
Error:Could not play file
when attempting to use the PlayFile function ...
This is for all my MP3's. Are there any issues with Playfile when streaming using the XBMS protocol? I did have SMB:// shares, but was having issues with Vista and permissions which is why I switched to XBMS.
Thanks again in advance
- KevMoore123 - 2008-01-05 16:46
OK, ive tracked the problem down to the "playableFile" function.
Im not sure if CFile::Exists() handles XBMS, as its streamed and not technically a file location.
Is there any scope here to allow for the XBMS protocol?
- nad - 2008-01-19 19:24
I had never tried xbms before but it works for me.
All I did was download and run ccXgui Lite on my Vista computer. Vista gave the regular firewall prompt which of course I approved.
The playfile and getdirectory commands workperfecty (you don't need to specify the 1400 port but it still works if you do).
You should also be able to get smb to work on Vista though I recall it was an effort and I can't remember what exactly I did on the Vista box to enable it.
HTTP API question about press and release commands - smcnally75 - 2008-01-19 22:13
Can the web interface differentiate between a press and a release? In other words, When I send a d-pad up command, the curser will move up one spot. What I would like to do, but can't find if it is possible, is send a d-pad up press command, and then send a release command when I'm done so it acts just like the controller and reduces the amount of traffic. I programmed the controller I'm using to watch for a hold and then send the command through an oscellator. It works alright, but I would really like to no have to send it so many commands so quickly. Is this not possible, or I'm I just not looking in the right places?