WebServer HTTP API (HttpApi): for PocketPC and Web-client Remote Control Apps

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #541
Forgot to post a reply but a couple of weeks ago KeyRepeat command (see wiki) was added to implement smcnally75's request.

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: badge.gif]
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #542
Just in case there are any Javascript programmers wanting to know how to create a Vista Sidebar gadget; have a look here: http://forum.xbmc.org/showthread.php?p=1...post173274

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: badge.gif]
find quote
meddle Offline
Junior Member
Posts: 6
Joined: Aug 2007
Reputation: 0
Post: #543
Hope someone can help, I ahve downloaded v1.91 if XBMC Control for my PDA. I can connect to XBMC which in turn connects to my PC via Wifi where all my music is stored. Is there a way I can browse by Artist/Album in the same way you browse in XBMC. I currently have to search the individual folders of my PC via the PDA which really slows this down for me.
find quote
KevMoore123 Offline
Junior Member
Posts: 26
Joined: Dec 2007
Reputation: 0
Location: England
Smile  XBMCM Sourceforge
Post: #544
Hi Guys,

The source for my slightly less impressive PDA Application can be found on sourceforge. The url is;

http://xbmcm.svn.sourceforge.net/viewvc/xbmcm/

There is a readonly repository there for Subversion users.

You will need VS2008 to compile this, and please bear in mind its a beta, and I havent really done much with it since my Xbox blew up !!!

If you have any changes, let me know and I will grant you developer rights on the SourceForge project site.

Cheers

Kev
find quote
Niroth Offline
Junior Member
Posts: 8
Joined: Apr 2008
Reputation: 0
Post: #545
I have looked right through this thread and haven't found what I am looking for.

I have modified the default web interface to work with a 10.4" touch screen, much the same as some others here. I have all the functionality that I want, but I would like to display the currently playing song, current song progress/total, and the next song in the playlist.

Has anyone got a complete web interface available for download that I could have a look at? Perhaps someone can just give me a hand with the commands and what I have to do to make the songs and times show, and update properly. I really like this little ppc app, but like Affini, I want to use this in a browser interface.

Hopefully someone can help and point me in the right direction.

Thanks,
Jase
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #546
Have a look at LiquidIce's Ajax code https://xbmcajax.bountysource.com/downloads Unfortunately he (?) stopped developing it but it it already pretty impressive and it does what you are after. It is buggy in IE.

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: badge.gif]
find quote
Niroth Offline
Junior Member
Posts: 8
Joined: Apr 2008
Reputation: 0
Post: #547
Hmm. My coding skills aren't really all that high. I pulled all the scripts from his ajax code and put them into mine, then put in the call for the details I wanted but I just couldn't get it working.
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #548
The actual logic you need is straightforward:

response = http://xbox/xbmcCmds/xbmcHttp?command=Ge...thumb.jpg)

//parse the response to get the fields you wish to display

thumbnail.src = http://xbox//thumb.jpg

NB the version of GetCurrentlyPlaying which has the optional parameter (as above) is only availabe in recent builds of xbmc.

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: badge.gif]
(This post was last modified: 2008-04-11 12:01 by nad.)
find quote
Niroth Offline
Junior Member
Posts: 8
Joined: Apr 2008
Reputation: 0
Post: #549
nad,

First of all I am not certain exactly how to parse the results. What exactly is the thumb.jpg meant to be? I don't have this image on my xbox? I think i am close to getting what I need, I just need a little more direction.

Is it possible perhaps if someone can paste a snippit the code that deals with the parsing of the results, so I can get an idea of the code and exactly how its configured with the desired results.

I have the latest T3CH SVN.

Hopefully you can help me, some more, again.

Thanks guys,
Jase

nad Wrote:The actual logic you need is straightforward:

response = http://xbox/xbmcCmds/xbmcHttp?command=Ge...\thumb.jpg)

//parse the response to get the fields you wish to display

thumbnail.src = http://xbox//thumb.jpg

NB the version of GetCurrentlyPlaying which has the optional parameter (as above) is only availabe in recent builds of xbmc.
find quote
Niroth Offline
Junior Member
Posts: 8
Joined: Apr 2008
Reputation: 0
Post: #550
I was just reading more on the parameters of that command. I found in the help (which i've read about 10 times now) this: http://xbox/xbmcCmds/xbmcHttp?command=Ge...\thumb.jpg

Now it says that the parameter must be an absolute path (as seen by the xbox) I have XBMC installed to: e:\_xbmc and of course the path of the web is e:\_xbmc\web

Will this help at all?
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #551
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=Ge...\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.

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: badge.gif]
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #552
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.

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: badge.gif]
find quote
Niroth Offline
Junior Member
Posts: 8
Joined: Apr 2008
Reputation: 0
Post: #553
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
find quote
TREX6662k5 Offline
Donor
Posts: 214
Joined: Oct 2006
Reputation: 0
Location: London, United Kingdom
Post: #554
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"

WYSIWYG
find quote
Niroth Offline
Junior Member
Posts: 8
Joined: Apr 2008
Reputation: 0
Post: #555
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"
find quote
Post Reply