XBMC Community Forum
XBMC HTTP-R, Remote Control Web App for PDA, PPC, or Smartphone (developers wanted) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+--- Thread: XBMC HTTP-R, Remote Control Web App for PDA, PPC, or Smartphone (developers wanted) (/showthread.php?tid=40958)

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


- ShayneOSU - 2009-12-03 06:24

XiniX88 Wrote:Can you go to the web-page of XBMC itself (so localhost:8080 I guess) the same as you've configured in config.php, and check if that page is working, also check if the controls are working.

Yes. The default XBMC site works well.

XiniX88 Wrote:You can check the following URL:
http://localhost:8080/xbmcCmds/xbmcHttp?command=Stop()
while playing a video, this should stop the movie from playing. It will also display a message "Ok" or something like that.

It prompted me for a username and password. When I used the username/password from the Network - Settings - Allow control of XBMC via HTTP settings area from XBMC, it then worked, stopping the movie and printing OK.

How does your application authenticate itself with the xbmcHttp server? Should I specify the login info that allows access to XBMC web server somewhere in your application's config files?

Quote:If all those things are working, I guess your PHP is broken (running PHP in safe mode?)

Is there a way I could test/change this?


- Linax - 2009-12-03 13:43

Hi.

First of thanks XiniX88 for this interface it must have been lots of work.

I have tried many times now and read the redme file also many times but cant get it to work.

When i enter "http://192.168.10.70/XBMC" page i get these faults in the C:\xampplite\apache\logs\error.log:

[Thu Dec 03 12:12:04 2009] [error] [client 192.168.10.71] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /XBMC/%3C?=$template-%3Epath?%3E240/style.css HTTP/1.1 to file, referer: http://192.168.10.70/XBMC/
[Thu Dec 03 12:12:04 2009] [error] [client 192.168.10.71] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /XBMC/%3C?=$template-%3Epath?%3Escript.js HTTP/1.1 to file, referer: http://192.168.10.70/XBMC/

If i try the "http://192.168.10.70/xbmc/index.php?__id=1" i get:

[Thu Dec 03 12:15:13 2009] [error] [client 192.168.10.70] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /xbmc/%3C?=$template-%3Epath?%3E240/style.css HTTP/1.1 to file, referer: http://192.168.10.70/xbmc/index.php?__id=1
[Thu Dec 03 12:15:13 2009] [error] [client 192.168.10.70] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /xbmc/%3C?=$template-%3Epath?%3Escript.js HTTP/1.1 to file, referer: http://192.168.10.70/xbmc/index.php?__id=1

I have tried installing both xampplite and xampp on the PC with XBMC on and a standalone PC. Both running winxp sp2. In all 4 cases i can run the indexing sequense without faults whit the latest relese. I tried also opening from pc with firefox.


If i try as you sugjested for a other member:
PHP isn't working! Configure apache correctly... use: <?php phpinfo(); ?> to see if PHP is working (add it to a new file called testphp.php).

when i run the test.php file i get a page showing lots of info, what of it do you need?

I use a Nokia N97 with screen resolution of 640 x 360:

BodyElementWidth: 360
BodyElementHidth: 493

BodyWidth: 360
BodyHeight: 493

Element ClientWidth: 360
Element ClientHeight: 493

Element OffsetWidth: 360
Element OffsetHeight: 493

Element2 ClientWidth: 360
Element2 ClientHeight: 0

OnResize function: Working!

Hope that somone understands what the problem is so that we can fix it.

Please let me now if there is some more info you need.

Regards Linax


- XiniX88 - 2009-12-03 14:18

ShayneOSU Wrote:How does your application authenticate itself with the xbmcHttp server? Should I specify the login info that allows access to XBMC web server somewhere in your application's config files?

You have to disable the username and password, and XBMC HTTP-R will work Smile (settings => network => Servers, empty password, if fails, also empty username)

@Linax:

You need to open your php.ini file in xampp/php directory and modify short_open_tag to On

Btw, thanks for the testresults!

--------------
Is there someone with a Windows Mobile device who can test it?? Using IE and Opera...


- kjheu - 2009-12-04 21:39

- Resolution : 320x240
- Device : Blackberry 8350i
- Browser : Blackberry Default

Width / Height test
BodyElementWidth: undefined
BodyElementHidth: undefined

BodyWidth: undefined
BodyHeight: undefined

Element ClientWidth: undefined
Element ClientHeight: undefined

Element OffsetWidth: 305
Element OffsetHeight: 202

Element2 ClientWidth: undefined
Element2 ClientHeight: undefined

OnResize function: Waiting (or not working)



- Resolution : 320x240
- Device : Blackberry 8350i
- Browser : Bolt

Width / Height test
BodyElementWidth: 320
BodyElementHidth: 798

BodyWidth: 320
BodyHeight: 798

Element ClientWidth: 320
Element ClientHeight: 798

Element OffsetWidth: 320
Element OffsetHeight: 798

Element2 ClientWidth: 320
Element2 ClientHeight: 0

OnResize function: Waiting (or not working)


- Resolution : 320x240
- Device : Blackberry 8350i
- Browser : Opera Mini

Width / Height test
BodyElementWidth: 314
BodyElementHidth: 200

BodyWidth: 314
BodyHeight: 200

Element ClientWidth: 314
Element ClientHeight: 200

Element OffsetWidth: 314
Element OffsetHeight: 200

Element2 ClientWidth: 314
Element2 ClientHeight: 0

OnResize function: Waiting (or not working)


- smeddy - 2009-12-04 23:19

Hi! I've registered on this site after months of lurking to specifically provide you with some results, as I've been waiting with frustration for a decent XBMC controller for Windows Mobile! I can't believe, with thousands of users, that it hasn't been done (properly) before. Every other project died just when they got somewhere!

Anyway, thanks so much for continuing with HTTP-R - even if it took me a month to get it properly working, it's perfect!

Onto results:

http://m.denhaas.info/test.html
HTC BLACKSTONE (ALSO KNOWN AS TOUCH HD)

Resolution: 800x480 (WVGA)
Device: HTC Blackstone
Browser: Opera mobile 10 Beta
OS: Windows Mobile 6.5

Width / Height test
BodyElementWidth: 240
BodyElementHidth: 369

BodyWidth: 240
BodyHeight: 369

Element ClientWidth: 240
Element ClientHeight: 369

Element OffsetWidth: 240
Element OffsetHeight: 369

Element2 ClientWidth: 240
Element2 ClientHeight: 0

OnResize function: Working!

Regards, Edd


- XiniX88 - 2009-12-05 17:41

Great! Tnx for the results (don't need more results)... I will create a proof of concept of my new interface tomorrow (it will stretch on every display (vga/qvga/wqvga etc. etc.).


- ppic - 2009-12-05 18:13

samsung i900 omnia (also known as player addict)

Width / Height test
BodyElementWidth: 240
BodyElementHidth: 400

BodyWidth: 240
BodyHeight: 400

Element ClientWidth: 240
Element ClientHeight: 400

Element OffsetWidth: 240
Element OffsetHeight: 400

Element2 ClientWidth: 240
Element2 ClientHeight: 0


OnResize function: Waiting (or not working)


- tamago_quin - 2009-12-06 17:13

toshiba t-01a
opera 9.5
Width / Height test
BodyElementWidth: 960
BodyElementHidth: 1600

BodyWidth: 480
BodyHeight: 800

Element ClientWidth: 480
Element ClientHeight: 800

Element OffsetWidth: 480
Element OffsetHeight: 800

Element2 ClientWidth: 480
Element2 ClientHeight: 0

OnResize function: Waiting for rotation... (or not working)

my numbers are different than most it seems...

this month i probably wont be much help, but i will try! next year ill have more time!!


- tash - 2009-12-07 16:06

Acer f900
opera 10 beta
Width / Height test
BodyElementWidth: 240
BodyElementHidth: 369

BodyWidth: 240
BodyHeight: 369

Element ClientWidth: 240
Element ClientHeight: 369

Element OffsetWidth: 240
Element OffsetHeight: 369

Element2 ClientWidth: 240
Element2 ClientHeight: 0

OnResize function: Working!


- XiniX88 - 2009-12-07 18:25

tamago_quin Wrote:toshiba t-01a
opera 9.5
Width / Height test
BodyElementWidth: 960
BodyElementHidth: 1600

BodyWidth: 480
BodyHeight: 800

Element ClientWidth: 480
Element ClientHeight: 800

Element OffsetWidth: 480
Element OffsetHeight: 800

Element2 ClientWidth: 480
Element2 ClientHeight: 0

OnResize function: Waiting for rotation... (or not working)

my numbers are different than most it seems...

this month i probably wont be much help, but i will try! next year ill have more time!!

This is indeed what I was guessing to see... Windows Mobile Opera 9.5 is emulating a different screen resolution on "BodyElementWidth".

http://m.denhaas.info/test2.html

Test 2... Its a proof of concept, so don't look at the graphics. This version will stretch to your browser screen. Please check if you can scroll to the bottom. If the controls and title aren't scrolling, please click on the link to fix it, iPhone and Android users might have this behavior.

You can click on "My header isn't moving" multiple times, it will cycle through the following render mechanisms:

Mode 0: Position fixed is working! (great browser)
Mode 1: window.onresize is working! (webkit user?)
Mode 2: window.setTimeout is working! (Using more CPU! (might be nicer than mode 1!))
Mode 3: Your browser sucks (or you don't like the header scrolling late! but still the browser sucks since it doesn't support position: fixed!)

Android is working in mode 1+

Please report if your browser:
1. Doesn't have a horizontal scrolling bar (you will only get a vertical one)
2. Stretches the page correctly (so the title is 100% of your screen size)
3. What mode is working for your browser (I hope some users will report that mode 0 is working, since it's really nice to use this CSS feature!)
4. In mode 3, "me needs to be visible" (last item of the list), is it visible? and is there 30px space between this item and the footer?
- AND your version of OS (WinMo/Android) AND browser (Opera 9.5, Apple (safari) etc)
Happy testing, please let me know your results!

BTW, I hate the fact that Android isn't supporting this (position fixed, which will make it able to let the title float and controls always stay at the bottom of the screen, see how it should work in your "real" browser IE7+ FF1.0+ Opera 8.5+), if this was working, I could have made real online apps for android/iphone etc. etc. without any modification.