XBMC Community Forum
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-04-11 12:00

Have you looked at the GetCurrentlyPlaying entry in the online help?:

http://wiki.xbmc.org/?title=WebServerHTTP-API

If after reading the above it is still not clear (in fact if it is not clear let me know how I can make it clearer and I'll update the entry) try the following.

Enter

http://xbox/xbmcCmds/xbmcHttp?command=GetCurrentlyPlaying(q:\\web\\thumb.jpg)

into your browser (change the xbox address if necessary) and you will see the (very simple) format that you need to parse (use view source).

Issuing the above command also creates the thumb.jpg file on your xbox. So now enter

http://xbox/thumb.jpg

into your browser and you will see the thumbnail of the currently playing media.


- nad - 2008-04-11 12:04

Niroth: I posted my reply before seeing your latest.

q: is a drive mapping that xbmc sets up which is independent of the actual folder xbmc is installed in. Therefore my examples should still work on your set up.


- Niroth - 2008-04-11 12:08

Ok, I have read it all. I don't think its so much that it doesn't make sense as much as I just dont understand how to take all the commands and get the result I want. I have used the getplaying command and it does show what I want I just dont know how to display it.

Secondly, I have a host record the xbox to my xbox's IP, so thats no issue. I have punched in that command, as well as the &parameter= version as well, and it has created the thumb, but the thumb is just an image of like a movie timeboard? Is that what its supposed to be? I have read that it is supposed to be a thumb od the currently playing (I have a movie on in theback ground) I just want to make sure that the responses that I am getting are correct.

I don't know how to get all the results from the getcurrentlyplaying and then take only the filename for example and display that on the web interface.

I do apologise if I am not explaining myself properly, or if u are getting frustrated. I appreciate the help, and I have a feeling that I am just || <this close.

Jase


- TREX6662k5 - 2008-04-11 13:32

I take the getcurrentlyplaying response as one large string then split the data up at every <li> and ":" and reference the field to retreve the data.

A Lua example is getcurrentlyplaying.data["thumbnail"] = "q:\thumb"


- Niroth - 2008-04-11 13:35

Trex,

This is EXACTLY what I want to do. Are you able to show me snippits of our code that retrieves the information, as well as an example of how to call on that information.

I still dont get the thumb thing... all i see is speakers for the fact that its playing music, is it meant to show something else? If not, this little image is of no use to me, its the song name that I am after.

Perhaps if its easier you can contact me on msn @ jasenolan@hotmail.com

Thanks again guys,
Jase

TREX6662k5 Wrote:I take the getcurrentlyplaying response as one large string then split the data up at every <li> and ":" and reference the field to retreve the data.

A Lua example is getcurrentlyplaying.data["thumbnail"] = "q:\thumb"



- nad - 2008-04-11 18:50

The thumbnails you are getting are just the default ones for movie (timeboard image) and audio (speakers image) files. If the regular xbmc interface displays the images you want then the thumbnail being returned to your browser should also be correct. From your description it sounds as if you don't have the thumbnails set up.


- Niroth - 2008-04-12 00:55

I would agree. Perhaps the thumbnails aren't setup. But it's not the images that I am wanting to get displayed, its the song titles. I want to do basicaly what Trex has done, take the 7 or 8 lines of results from the getcurrentlyplying command, and just display one element of it, ie. the song name.


XBMC-M SourceForge - KevMoore123 - 2008-06-03 17:57

Hi Guys,

The source for my app (XBMC-M) is now availabe on sourceforge,

https://sourceforge.net/project/showfiles.php?group_id=212319

For those guys who are interested. Please feel free to use/abuse it. If you want to be a contributor let me know and I will add you as a user on SVN for the sourceforge repository.

Cheers

Kev


- taoizt - 2008-06-04 10:25

I think there are great initiatives to build nice web clients for PocketPC's, but what about the normal PC's ? I have used the XBMC Control, and the Ajax Webinterface, but sadly, as promising as they are, both are far from finished and polished. Is there any application that I'm missing that is ready or almost ready and has a somewhat finished look?


- jeepcook - 2008-06-17 16:16

NeoMorph Wrote:Nad, as I've said before... you rock! Gonna try out the GetMusicLabel command out in a bit but it sounds like it will let me know whether to enable the recording button correctly.


FYI, my current panel is now looking like this (click on image to get a full sized one)...


[Image: ANNA-XBMC-v1.004-sm.png]

The big red and blue buttons at the top left are just placeholders for testing stuff. The reason the buttons are so big is that it's a touchscreen layout.

I just have a few logic glitches to work through and then add some updated graphics for the covers display, artist bio display and web lookup display to do and then version 1 will be ready for release to NetRemote/Girder users.

Hello,

Is there news about a version of this beautiful interface ?

Thanks