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
Can anyone try this for me?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Found the little bugger
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.
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