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
thor918 Offline
Fan
Posts: 363
Joined: Jun 2004
Reputation: 0
Location: Norway
Post: #61
i'm just looking at the source of the pocketpc app.
when the song is changing it must update the app.
so i found out that it has a pull checks the xbmc every second (1000milliseconds). wouldn it be better to have a push sever technology? how is this working in reality? is this horrible slow or is it acceptable? anyway.this could be done by having a little phyton script that just signals the app when a new song is played. what do you think?
find quote
zordon Offline
Member
Posts: 71
Joined: Oct 2003
Reputation: 0
Post: #62
(thor918 @ may 01 2005,14:42 Wrote:use getright or something similar to ensure download
thanks getright worked.
find quote
zordon Offline
Member
Posts: 71
Joined: Oct 2003
Reputation: 0
Post: #63
wow this app is the dogs bo####ks Big Grin
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #64
thor918: i think you missed a zero when you said the poll frequency was 1000ms, the default value is in fact 10s. you can change this figure by manually modifying the xbmccontrol.ini.txt file (checkperiod is the entry you need to change).

the way i use xbmccontrol is typically just to start an entire album playing and then sit back and listen. xbmccontrol should update itself within a couple of seconds of the start of each new track.

it sounds like your mode of navigation is to click the previous and next buttons, which is where the screen update delay comes in. i'll have a play with your suggestion (27 april) to see if it makes things any better. however, assuming there is a playlist in operation you can flip between tracks almost instantaneously by clicking on the required track on the playlists tab.

off topic - have you noticed that you can almost 'scratch' the playing track by dragging the position bar on the main tab.

nad

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
thor918 Offline
Fan
Posts: 363
Joined: Jun 2004
Reputation: 0
Location: Norway
Post: #65
addition to the desktop app.
msn music listen code.
it is always on in this code. so it should be added a setting to turn on/off

nad has the code.so maby it will be uploaded in a version of httpapplication at sourceforge.

btw. are anyone eles experience that the app goes to offline mode after a while.and it seems like it does timeout every time it says looking up image.
album image does work.

Quote:i found this nifty little code that will allow us to have xbox song info in the msn nick.
i made some changes to your desktop version to get the info right.
here is the source (xbmccontrol.vb look for "thor" in comment to see where i made changes):
http://home.no.net/thor918/xbmc/msnhttp.zip

the windows api source was found here:
http://forums.msnfanatic.com/lofiver....]
find quote
HaggleLad Offline
Member
Posts: 56
Joined: Oct 2004
Reputation: 0
Post: #66
(thor918 @ may 03 2005,13:41 Wrote:
Quote:i found this nifty little code that will allow us to have xbox song info in the msn nick.
i made some changes to your desktop version to get the info right.
here is the source (xbmccontrol.vb look for "thor" in comment to see where i made changes):
http://home.no.net/thor918/xbmc/msnhttp.zip

the windows api source was found here:
http://forums.msnfanatic.com/lofiver....]
are you able to explain how this works coz there's no readme?
i.e. what files to put where? (does anything need to be compiled?)

many thanks

Acer Revo R3700, XBMC Darma on Windows 7 - Xbox with X3, X3CP & X3IR, XBMC as dash, Xbox v1.4, Vantec 80mm Stealth Fan Mod
find quote
thor918 Offline
Fan
Posts: 363
Joined: Jun 2004
Reputation: 0
Location: Norway
Post: #67
there is one sourcefile that exists and there is one new sourcefile. you can just copy these files into the sourcedir and overwrite one file. the application has to be compiled again.
but remember this is just an experiment.
find quote
thor918 Offline
Fan
Posts: 363
Joined: Jun 2004
Reputation: 0
Location: Norway
Post: #68
okey.here is the whole thing.
new files put in place
[Image: msnxbox.gif]

just found out that the users that see you will look for smileys in the music nick to. hmm how stupid is that. anyway "xbox muisic: " should remove the stupid thing that ":" followed by "s" will be converted to a smiley.
fixed version:
http://home.no.net/thor918/xbmc/xbmccontroldesktop.zip
find quote
HaggleLad Offline
Member
Posts: 56
Joined: Oct 2004
Reputation: 0
Post: #69
thor,

many thanks for posting the full app, much appreciated.

however....

i've tried running the exe that you've provided (both the one in the root folder and the one in "xbmccontroldesktop") and they work fine except that msn doesn't display anything...

am i being a retard? what am i doing wrong?

(i'm running msn v7.0.0777 and yes i have got "turn on "what i'm listening too"" checked and it does work with media player)

thanks again

Acer Revo R3700, XBMC Darma on Windows 7 - Xbox with X3, X3CP & X3IR, XBMC as dash, Xbox v1.4, Vantec 80mm Stealth Fan Mod
find quote
thor918 Offline
Fan
Posts: 363
Joined: Jun 2004
Reputation: 0
Location: Norway
Post: #70
the exe that is in the bin folder should be the one that works
xbmccontroldesktop\source\bin\xbmccontroldesktop.exe

if the mediaplayer works it should work using this code.
find quote
HaggleLad Offline
Member
Posts: 56
Joined: Oct 2004
Reputation: 0
Post: #71
thanks alot thor,

swapped in that exe and it works like a charm.
great work.....

Acer Revo R3700, XBMC Darma on Windows 7 - Xbox with X3, X3CP & X3IR, XBMC as dash, Xbox v1.4, Vantec 80mm Stealth Fan Mod
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #72
i have just uploaded v0.98 of xbmccontroller to sourceforge.

added thor's msn messenger integration code to the desktop version.

made the main tab controls more reactive.

increased the timeout that the app will wait for a response from xbmc.

(the latter should fix thor's problem with the app going offline. i have assumed it was caused by the xbox hard disk going into power save mode. when my app next makes a call to xbmc, the app is probably timing-out while waiting for the hard drive to spin up again. i have increased the timeout from 5s to 10s. let me know if you still experience this problem.)

nad

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
Livin Offline
Posting Freak
Posts: 3,519
Joined: May 2004
Reputation: 17
Location: above ground
Post: #73
nad,
have you given any more thought to the idea i posed a while back...
Quote: have a "mimic" mode. where the web site acts as "remote control". so, a change on the web site (say choosing "my videos" would trigger a change on the tv screen so the screen enters "my videos"... like a big remote!

this would turn any web browsing device into the ultimate xbmc remote control!

I'm not an expert but I play one at work.
find quote
nad Offline
Team-XBMC Developer
Posts: 265
Joined: Feb 2004
Reputation: 0
Post: #74
affini: i haven't, but i'll look into over the next few days.

nad

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
thor918 Offline
Fan
Posts: 363
Joined: Jun 2004
Reputation: 0
Location: Norway
Post: #75
(affini @ may 09 2005,00:40 Wrote:nad,
have you given any more thought to the idea i posed a while back...
Quote: have a "mimic" mode. where the web site acts as "remote control". so, a change on the web site (say choosing "my videos" would trigger a change on the tv screen so the screen enters "my videos"... like a big remote!

this would turn any web browsing device into the ultimate xbmc remote control!
i think your description is a little vage.
in short you want a remote controll that can switch gui screens at xbmc tvscreen?
if so this can allready be done using executebuiltin webcommand.

paste from code
>else if (!strcmp(command, "execbuiltin")) return xbmcexecbuiltin(wp, parameter);

so the webquery will look like this i guess
command=execbuiltin&parameter=xbmc.activatewindow(id, dir)

http://cvs.sourceforge.net/viewcvs....=markup

http://manual.xboxmediacenter.de/wakka.p....s&v=98v

window ids are as followed:
Quote: <homebuttons>
<button>
<description>my programs</description>
<label>0</label>
<execute>xbmc.activatewindow(1)</execute>
<icon>102</icon>
</button>
<button>
<description>my files</description>
<label>7</label>
<execute>xbmc.activatewindow(3)</execute>
<icon>106</icon>
</button>
<button>
<description>my pictures</description>
<label>1</label>
<execute>xbmc.activatewindow(2)</execute>
<icon>104</icon>
</button>
<button>
<description>my music</description>
<label>2</label>
<execute>xbmc.activatewindow(501)</execute>
<icon>103</icon>
</button>
<button>
<description>my videos</description>
<label>3</label>
<execute>xbmc.activatewindow(6)</execute>
<icon>105</icon>
</button>
<button>
<description>weather</description>
<label>8</label>
<execute>xbmc.activatewindow(2600)</execute>
<icon>107</icon>
</button>
<button>
<description>settings</description>
<label>5</label>
<execute>xbmc.activatewindow(4)</execute>
<icon>109</icon>
</button>
<default>0</default>
</homebuttons>
find quote
Post Reply