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


- TeknoJuce - 2006-02-16

hahaha n0ice man!, what i ment though is since it is an "optional" option it should be in filedownload also and not limited to getthumb.. though for if you wanted to grab a picture off the xbox cuz in general the terminology will get mixed up there cuz a picture is not a thumbart album art etc.. Smile

edit: compile just finished ill give it a test :p

opps guess i have to recompile to get the screenshot Smile

doubleedit: you should idle in in the chatroom any reason why you dont?






- kraqh3d - 2006-02-16

Quote:what i ment though is since it is an "optional" option it should be in filedownload also and not limited to getthumb
i've un-deprecated the getthumb command. they now work differently on purpose. the getthumb command assumes you're getting an xbmc thumb, therefore we can make assumptions on the mime type, and allow the imgtag parameter. filedownload, on the other hand, can really download *any* file so its not a good idea to allow that tag. i would love to completely change getthumb to only do imgtag, but then i could potentially break someone's app.

Quote:doubleedit: you should idle in in the chatroom any reason why you dont?
well, i usually cant because my work proxies block it but i can get here. however, today, i happen to be working from home so i guess i could. i've been working more on xbmc today than anything else Smile


- TeknoJuce - 2006-02-16

sent you a forum message... Smile


- pike - 2006-02-17

i think it would be a nice thing ™ if the takescreenshot cmd could be told to use -current- resolutions, because on a pal machine it can differ;
pal / pal60 |
720x576 / 720x480


- TeknoJuce - 2006-02-17

to bad ie doesnt support the base64 jpg conversion method :/ oh well so much for the iframe idere heh..


- TeknoJuce - 2006-02-17

we should extend this picture settings to the core capture gui settings.. so we can say make screenshots jpg right off the bat instead of 1 meg bmps Smile give people options to what quality and size.. jpg and bmp option.. Smile would make support situations much better when they try to send you a 1 meg bmp etc..and then telling them they have to convert it first.. cuz they are on dialup or something crazy..






- jmarshall - 2006-02-17

sure - just don't add options like this to the gui. instead, set sensible defaults (jpg, no resize, typical quality like 90% or whatever) and have it in xml for the advanced users. the gui should ideally only have settings that normal users need to change - the more settings there are, the less likely people are going to bother going through them all.


- LiquidIce629 - 2006-02-21

is it possible to browse by artist / album / genere, etc?

i looked through some of the source code and it looks like i should be able to access that 'virtual filesystem' by using musicdb:// , musicdb://1/ , musicdb://2/
it works with shout://

i tried
Quote:/xbmccmds/xbmchttp?command=getmedialocation&parameter=music;musicdb://
/xbmccmds/xbmchttp?command=getmedialocation&parameter=music;musicdb://1/

but it responds with
Quote:error: invalid location, musicdb://

error: invalid location, musicdb://1/

is there another way to access the data in the music library from the http api?


- kraqh3d - 2006-02-21

yeah, the library window uses special internal shares which is why getmedialocation doesnt work. there's a sanity check thats failing. i'll add a work around for musicdb:// url's.

** edit **
done. i also allowed $playlists as a parameter for music and video to see the saved playlists location without knowing the full path to them.






- LiquidIce629 - 2006-02-21

kraqh3d, you are the man! it works perfectly!

i am coming very close to being able to release the initial version of my ajax frontend for xbmc. it will be a touchpanel friendly web-based gui written completely in javascript which makes use of the prototype framework and script.aculo.us effects. i will post some teaser shots soon once i fix up the gui gfx.

also, i am still somewhat confused on the thumbnails. the win32 frontend seems to call lookupalbum and choosealbum to pull the graphics from allmusic.com. should these graphics be getting cached in the music library so that getthumb can retrieve them?

i tried using the lookupalbum and choosealbum commands, and while they do work, they seem to lock up xbmc for a few seconds while they are off downloading the content. i can't seem to get any data back from getthumb (only takescreenshot). this is for albums which have coverart appearing in the tv gui. any tips would be appreciated.

**edit**
ok, i jumped the gun a little bit.. it's not perfect.
Quote:/xbmccmds/xbmchttp?command=addtoplaylist&parameter=musicdb://7/301/

returns:
error

do you need to make the same change to addtoplaylist so it can access musicdb:// ??






- kraqh3d - 2006-02-22

i have no idea about additemtoplaylist. i only said i'd fix getmedialocation.


- TeknoJuce - 2006-05-25

kraqh3d are you still alive Smile
just wonder if you could do a small fix to the httpapi seems file size: in getcurrentlyplaying disappeard, it shows up in getcurrentlyplaying if you start the file from xbmc but not when you start the file from httpapi itself... very strange thanks again hope ur doing okay! thanks again!






- kraqh3d - 2006-05-29

yeah, i;m alive Smile i just had alot of things going on between moving and work. work has calmed down a bit, but things are still hectic in the new house. i'll see if i can track this down in week or so.

how are you starting the file? are they playlist items playing or something else?

** edit **
just did a quick test. i dont get filesize at all.

** edit 2**
nevermind. i needed to recompile. i get filesizes for files started via xbmc.

** edit 3 **
i also get filesize for files started via the playfile command.






- jmarshall - 2006-05-29

that's cause i fixed it.

nad then re-fixed it.

i'm about to re-fix his fix


- nad - 2006-05-29

wow, we all came to this at the same time. anything to do with the bank holiday (assuming you are in the uk)?