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


- Drongo - 2006-07-13

nad, firstly i used the controller and gui to display an album, selected the first track and let it play. then i used ie address bar and used your command http://ip/xbmccmds/xbmchttp?command=getcurrentlyplaying. it returns all the info including the thumb location. i let it move to the next track and refreshed in ie and everything is fine.

i then use my little web page that i'm developing. i select an album to the playlist, essentially using some of the code from the original default.asp. i have set up the transport controls to use your http api commands. i then select play which issues the command href="/xbmccmds/xbmcform?command=play&redirect=ppcxbmc-blank.htm". in another instance of ie i use the address bar as before to issue the getcurrentlyplaying command and the response is fine, including the thumb path. i let it move onto the next track and refresh but the thumb location is no longer there. however the gui is still displaying a correct thumb. so we loose the thumb info when we move to the next track.

if i stop the player and then restart using my play button the thumb info returns, only to go again when the next track plays.

one thin i did notice was that the ie response for the songno was 0 for the first track using the gui but 1 for the first track when using the http api.

the other thing is that with the gui the whole album gets played after selecting the first track, whereas in the web server it does not. i believe this has been mentioned before.

does any of this help or are you more confused than i am.Sad

drongo


- kraqh3d - 2006-07-13

nad,
Try changing the part of getcurrentlyplaying which tries to find the thumbnail to use the GetImage function from the InfoManager. Something like this:

if (g_application.IsPlayingVideo())
{
output+=closeTag+openTag+"Thumb"+tag+":"+g_infoManager.GetImage(VIDEOPLAYERCOVER, -1);
}
else // assume music
output+=closeTag+openTag+"Thumb"+tag+":"+g_infoManager.GetImage(MUSICPLAYERCOVER, -1);


- nad - 2006-07-13

I updated GetCurrentlyPlaying with a PlayStatus field yesterday.

I'll have a look at kraqh3d's suggestion.


- nad - 2006-07-13

Kraqh3d: looks like your suggestion was spot on - I have uploaded the change.


- nad - 2006-07-13

TeknoJuce: I have just noticed you have imported my HttpApi docs to the new XBMC online manual - thanks! I'll try to add to it as well.


- mfennell - 2006-07-14

hey nad.

My flash interface for the psp is coming along nicely) My thumbnail solution has been to copy the thumbnail directory manually into the c:\web\ directory.

Flash is able to open and parse the tbn files as jpgs and display them.

Questions:

1) is it possible to change the thumbnail directory to c:\web ? or
2) can a copy script be run on a scan all to database event...?

Image


- TeknoJuce - 2006-07-14

nad Wrote:TeknoJuce: I have just noticed you have imported my HttpApi docs to the new XBMC online manual - thanks! I'll try to add to it as well.

yup np I had it in the old manual also Big Grin , everything I research into, I put into the manual like everyone should and figured it should be with all the commands that were constantly getting updated by by ma budday kraqh3d so others can benifit and make there own interfaces like I enjoy doing, which many have, its hands down my fav feature of XBMC. If you two guys (Nad, Kraqh3d) noramally have ur connection on u should really think about just idling in the chat channel all the time just for fun maybe join in on some of our chats its a no stress zone and ur not yelled at or required to even talk if you dont want to and no duties will be forced apon you, just come and idle in the chat. it takes very small resources to leave an IRC client idling in ur background processies, as we all benifit from the communications, thoughts, brainstorms among the team.


- kraqh3d - 2006-07-14

nad,
sweet. i wouldve tested it myself but i'm without a dev box at the moment.

teckno,
is there a web based irc client that'll run thru https? my forum reading time is really reduced to the time im at work and a normal irc client wont work thru our proxies.


- nad - 2006-07-15

TeknoJuce: I am in front of my PC on a rather ad hoc basis and generally when I am it will be typically early evening GMT but I'll try and fire up an IRC every now and again.

Going back to one of your earlier requests about username/passwords, I know it's not what you are asking for but in the mean time couldn't you use:

Code:
http://xbox/xbmcCmds/xbmcHttp?command=getdirectory&parameter=smb://user:pass@myPc/public



- mfennell - 2006-07-24

Beta release of my flash client is now up for beta testing (It's built for the psp, but will play on any v6 and above flash player)

http://www.markfennell.com/flash/psp/


- pre1014 - 2006-07-25

awesome!

The really cool thing about this is you can use it with active desktop in xp too. it works pretty slick but has trouble selecting songs (not directorys though).


- mfennell - 2006-07-25

I have a new thread running here
http://www.xbmc.xbox-scene.com/forum/showthread.php?t=21181

For bug reports, problems etc etc, I don't want to change this threads meaning.
pre1014 could you please go to this thread and explain your bug in more detail.


- nad - 2006-07-30

For those doing XBMC HttpApi development, you may find this command line tool useful.

http://www.xbmc.xbox-scene.com/forum/showthread.php?t=21289


- TeknoJuce - 2006-08-09

Heres a neat little tool I've been tossing together hope it works well for everyone so far it does. If you dont already have ur shares setup and working in XBMC then you wont get this working eather Big Grin well the Internet Explorer part should though :p anyways enjoy!

WEBServer Must Be Turned ON in XBMC so it can receive commands!

!!USE ATLEAST A JULY 2006 BUILD of XBMC or NEWER!!

ETXVS & IESTX V2.0 - Combination = Gold!

This is a combination of the two apps below because they worked a lot smoother when I combined the source as now it no more needs to open a new browser window for IESTX when u right click a link to send to XBMC.
also cleaned up absolute paths some more so they are no longer static and will find the proper folder to put everything in now. YAY!
Even if you only want one of these you should just use this version anyways because it works much slicker.

Release Notes:

ETXVS V1.0 - Explore To XBMC Via SMB

This adds an option under the SendTO menu of ur right click context menu in File Explorer windows, so that it will tell xbmc to start STREAMING that file from that shared resource. You must have youre shares accessible from XBMC first and functioning with the username and password set in the gui settings of XBMC.

This will NOT send files to the xbox hdd from windows it only commands xbmc to play the files from the share!

IESTX V1.0 - Internet Explorer Send To XBMC

Right click on links in Internet Explorer send to XBMC to start playing URL.

IESTX View
ETXVS View

IESTX & ETXVS V2 Download


- dbrood - 2006-08-22

i was wondering if anybody here still worked on xbmccontrol, its a great app!!
The only flaw i see though is i would love for it to prompt user for a username/password before the prompting of your xbox ip address, i know that you can manually input it but it would make things SO much easier if i could ammend the source code for it to work, ive a little knowledge of vb but unfortunatley i have no idea where to start. thankyou for all your help