When viewing with xhtml on my phone, images seldom load.

Support and queries relating to all previous versions of ZoneMinder
Locked
jeffshern
Posts: 18
Joined: Wed Jan 18, 2006 3:27 pm
Location: Colorado

When viewing with xhtml on my phone, images seldom load.

Post by jeffshern »

When I view my camera on my phone (Treo 750, Windows mobile). I usually don't get images. If I click on montage, if I'm lucky, I see two of the four cameras show up (usually I only see 0 or 1). The other two show up as squares with a red x in them.

If I click on a camera, I have to reload about 4-20 times to get an actual image.

What I guess is that it is grabbing the image, but it vanishes before it can get it all. Is there any timeout value I can tweak?

If I do it from my LAN (with the ?format=xhtml at the end of the url) it works like a charm.



May 19 11:45:10 security zms[20047]: INF [Debug Level = 0, Debug Log = <none>]
###.183.51.248 - - [19/May/2008:11:45:19 -0600] "GET /index.php?view=watch&mid=10 HTTP/1.1" 200 1225
###.183.51.14 - - [19/May/2008:11:45:20 -0600] "GET /zm_xhtml_styles.css HTTP/1.1" 304 -
###.183.51.16 - - [19/May/2008:11:45:20 -0600] "GET /cgi-bin/nph-zms?mode=single&monitor=10&scale=33&auth=cb5a2904xxxxa07c65afab9aebf8f47&rand=1211219119 HTTP/1.1" 200 -
May 19 11:45:20 security zms[20052]: INF [Debug Level = 0, Debug Log = <none>]
jeffshern
Posts: 18
Joined: Wed Jan 18, 2006 3:27 pm
Location: Colorado

update... kind of, but not really.

Post by jeffshern »

If I manage to view it on my phone not in xhtml format (?format=html) then it still does not look right... just get that big enpty box with an x looking at me.

tried turning on extended debugging, but I really didn't see anything more then I usually do. Maybe I did something wrong.
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

Post by haus »

That's odd; I've never had problems with PIE on WM5/6. Does it work on another computer outside your LAN? That would isolate it to the phone. I just tested mine and it works fine (hadn't tried it since upgrading to 1.23.3 on Ubuntu 7.10).

As an aside, I like James Wilson's ZM4PPC; it's fantastic for pocket PC use. You have to use ZM's built-in auth for real one-click access, but you get to see the live stream which is great.

http://www.zoneminder.com/forums/viewtopic.php?t=5434

I did see something weird - the IP addresses you xxx'ed out...they change an awful lot! I could see .14 and .16 as being proxies, but .248? They're all over the map. Seems very unusual to me, but maybe it has nothing to do with it. It could explain your problem, though:

ZM_AUTH_HASH_IPS

Whether to include IP addresses in the authentication hash

"When ZoneMinder is running in hashed authenticated mode it can optionally include the requesting IP address in the resultant hash. This adds an extra level of security as only requests from that address may use that authentication key. However in some circumstances, such as access over mobile networks, the requesting address can change for each request which will cause most requests to fail. This option allows you to control whether IP addresses are included in the authentication hash on your system. If you experience intermitent problems with authentication, switching this option off may help."

Maybe try turning off that option and see if it helps.
jeffshern
Posts: 18
Joined: Wed Jan 18, 2006 3:27 pm
Location: Colorado

xhtml issues

Post by jeffshern »

I noticed that too... I think it must be how my wireless provider does it...
It works everywhere else that I've ever tried it.

Just put a new browser on my phone, minimo, and it seems to work fine... so, I guess it's a browser issue.

(I take that back, it will work the first time, then after that, it is like it doesn't even try to load images)

Where do you get the zm4ppc, I'd like to try that.
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

Post by haus »

Does it work when you change the IP address hash option in "options"? I edited my post with more specifics about the IP address issue but may have done so after you responded.

You can get ZM4PPC within that thread I linked; read the whole thread, the most recent version and the correct format for the setup file are on one of the inner pages, unfortunately; there are a couple different downloads but the "latest" is in there somewhere. If you can't figure it out, let me know.
jeffshern
Posts: 18
Joined: Wed Jan 18, 2006 3:27 pm
Location: Colorado

Post by jeffshern »

Genius!!! I am not sure why I had that set, but that did it! Not sure why I didn't think of that, with the changing IP address and all.. Works great now!

I also tried that zm4ppc. After fiddling around with the conf files for a while, I got it working too... Guess I have two options now :-)
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

Post by haus »

:) Glad it worked. You had it set because it's the default - at least on mine it is, and I've never changed it...

I use cLaunch with 32x32 icons on my today screen so I can launch ZM4PPC with one press on the today screen. Great for quickly checking on things.

Strange that your IP address changes so much with each request. I'm used to seeing proxies bounce between a couple of very similar addresses (with the last octet changing by 1 or 2), but nothing quite like that. With Verizon, mine stays the same for each connected session.
Locked