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)
- pike - 2005-12-20 00:29
@ nad, im sorry to say i havent received a pm after the last one i sent to you.
so % with 2 decimals are in cvs now ?
and also, im sorry to say you misunderstood me, i dont want filesize as a separate command, i want it present on getcurrentlyplaying :saint:
regards / pike
- TeknoJuce - 2005-12-20 03:02
- nad - 2005-12-22 19:57
i hope to be uploading fixes for the semicolon problem (use ;; for a literal and ; for a separator) and the getdirectory bug and pike's request.
as far as the & problem replace all ampersands with %26 (which is the hex of the ascii value of &). any other problem characters should be fixed by taking the same approach.
then i am disappearing for christmas.
- Drongo - 2005-12-23 10:28
nad et all,
- donno - 2005-12-23 15:28
good job nad on the httpapi.:bowdown:
loved the xbmc control desktop application. :kickass:
i spend the last two days adding to the code from 1.22 from sf.
it has been auto updated to visual basic 2005 .net
so if it doesn't run at all might need to grab .net framework 2
- add the infomation panel (shows freespace, temp and few other bits and pieces
- redid the media tab - made alt method of showing bookmarks
- if not listening to anything it would msn would still have ' - '
- when playing video it shows as xbox video: filename - video (mainly coz i when i trying never got 'tags')
soon (after x-mas hopefully)
- control tab be finshed - so have more ff/rw
- my files -- a way of copying files (using 2 tree views).
not include is the pocketpc.
pc biniary: biniary link here
source: source code here
hopefully it works fine.
- TeknoJuce - 2005-12-23 21:17
dont know if its in or not if so dont think its talked about but there should be a create an m3u command and save command or something like that and if there already is should be documentated some more should add a code like for all the sample commands with all there attributes used cause a few of them were hard to figure out and also if they were broke you would just sit there and wonder if you were uttilizing it properly but with a clear code sample atleast you would know you were doing it right..
more bugs/minor request...
:fixed: 1.) getvolume only seems to be retriving: <-- seems to be working but dunno why it wasnt grabbing it for a while there..
no matter what the volume is set to ?
^--** fixed thanks jm as of jan 9th
:help: 2.) playfile wont play .m3u from a fresh boot, unless it was previously loaded manually with the controller but the external command playmedia does load the m3u..
3.) playerplayfile doesnt seem to do anything error:unknown command when i specify a filename or filename and path from the playlist..
4.)file size is added to nowplaying but now video titles have been removed :tear: (maybe its stuff with no tags in general used to atleast show filename there instead if no tag exsisted)
also anyway to follow suit on naming scheme... file size is two words can you put them together like samplerate.
maybe its something to do with playlist though (acually im pretty sure it has to do with playlists.. cuz the video shows up its nfo if its played directly..)
filename:f:\music\trance\dance project - lost and away.mp3
says its playing the video which is right but its file source says the last mp3 it played...
:fixed: 5.) checking getnowplaying while streaming a shoutcast top500 kills the audio and if you try to start another stream after that xbmc will lock up.
^--** fixed as of jan 21 thanks bobbin007 youre awsome
:fixed: 6.) think someone accidently broke something on couple last updates playfile no longer will stream urls only says error:file not found? -confirmed
^--** fixed thanks nad as of jan 9th
- TeknoJuce - 2005-12-27 09:16
kraqh3d good job with the getshares is there any options with it like getshares;music;pathsonly etc? i think that would be useful if not..
- kraqh3d - 2005-12-27 16:12
1) i didnt touch anything with playfile. i added a self-contained command to get the shares.
2) no. there's no options. it gets all the shares. that's all i needed it to do .
i was thinking about adding an option to specify the media type but i'll make it do what you have suggested. the command will look like this, the 0/1 at the end will denote pathsonly, and it will default 0 for off.
also, i used nad's double-semicolon convention for literal semicolons, so that those paths can be sent straight back to getdirectory as-is.
** edit **
it's in... with no parameters, you get returned a list containing <li>type;name;path.
if you include the (music,video,pictures) parameter, you get returned a list containing <li>name;path. (no need for the type since your asking for a particular one.
if you include the optional ;1 on the end, the list returned is just <li>path
- TeknoJuce - 2005-12-27 22:42
awesome good job man quick too!
about the playfile it just broke with in the last fewdays started getting comments that my url sending option wasnt working anymore i just thought it was bad urls or crappy servers but then i tried it out and yeah its dead for urls still works for hdd files though, the external command playmedia starts up a load screen atleast but still fails playing content but maybe you dont deal with this attibute but oh well just thought you might know cuz you seem to be the only other knowing whats going on with the httpapi enjoy your day thanks for the getshare update!
- kraqh3d - 2005-12-27 23:00
when you say the "external command playmedia" are you refering to the skinnable command xbmc.playmedia()?
i see why url's dont work. there's a test done for the parameter to see if its an existing file. this will obviously fail for a url with a message that says:
<li>error:file not found
the operation of playfile changed as of the following commit: "sun dec 18 16:20:58 2005 utc (9 days, 4 hours ago) by xbmcapi"
i could restore it, but i'd prefer to wait for nad to comment.