Can anyone try this for me?

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Can anyone try this for me?

Post by zoneminder »

If anyone has a recent 1.24.0 build installed and access with Firefox 2 or 3 I would be interested to hear what happens in the following scenario.

1) Open a live stream 'watch' window.
2) If you have a PTZ camera type make sure you are in the event list mode. Click on the image, this should initiate the digital zoom.

For me this works fine with Firefox 2 but with FF3 it terminates immediately after. From my logs it looks like FF is killing zms but I don't know or what it might object to. I have captured the streams with Wireshark and they look fine in both cases.

So I'm interested to know if this is a general issue or just an issue for me. Please report what version of FF you have and on what O/S you are running from.

Cheers
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I just started working on this now.
I haven't repackaged ffmpeg since they accepted the patch though so I might do that first. Will let you know shortly.

[edit] Duplicated with firefox 3, kills zms,
Konqeror, Firefox 2 work fine.
Of coarse the control only exists when streaming mjpeg, using stills is okay, otherwise the link don't exist (asf).
No errors anywhere, I can see a post go through Apache access_log on clicking the image.
Nothing in firebug, nothing obvious in Web Developer :?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks. I have no idea what the issue is here. It isn't a problem with clicking on the image because that is fine in other circumstances. There is no problem with zms which seems happy to keep sending but then gets kicked in the head with a TERM from the browser, or apache.
Phil
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Found the little bugger :D

It turns out that FF3 does not like an optimisation I have been using for zooming. Basically in FF2 if you use the digital zoom function then it just crops the image and lets the browser expand a half size (for instance) image in the html image element defined to be the size of the full size image. So zooming into a 320x240 image actually sends a 160x120 image which when placed into a 320x240 sized element in FF2 gets blown up to the right size. This is fine as there is no additional information to display and it saves zms having to do any scaling.

Anyway, it looks like FF3 throws it's toys out of the pram if the image it receives is not exactly the same size as the element in which to insert it or possibly if the images received in the stream do not remain the same size, I'm not sure which. So in the end I have removed that optimisation and put back a bit of a wasteful scale operation prior to the crop.

Bummer.
Phil
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

FF3 can zoom a whole page, including text & images. It's possible there's a way to do that in JavaScript, or at least it seems like it should be.
Locked