Closed
Bug 479015
Opened 16 years ago
Closed 6 years ago
First frame of server push mjpeg OK but subsequent frames too small
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: paul.chernett, Unassigned, NeedInfo)
Details
Attachments
(1 file)
658 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
When a server push jpeg img is placed in a div layer, and the img is resized or its source changed from javascript, frames after the first are too small, giving a sort of "picture in picture" effect. This can be cleared by rescaling the browser (Ctrl+ or Ctrl-).
The following code illustrates the problem for 3 different manufacturers' IP mjpeg streams.
<head>
<title>IP Camera</title>
<head>
<script type="text/javascript">
function load()
{
// document.getElementById("video").src = "video.cgi?camera=0"+"&random=" + Math.random(); //Grandeye camera
// document.getElementById("video").src = "http://192.168.0.82/control/faststream.jpg?stream=full&fps=16&rand=" + Math.random(); // Mobotix camera
document.getElementById("video").src = "http://192.168.0.13/axis-cgi/mjpg/video.cgi?camera=&resolution=640x480"; // Axis camera
}
</script>
</head>
<body onLoad="load()">
<div style="width:640px; height:480px;">
<img id="video" width=640 height=480 src="images/black.gif"></img>'
</div>
</body>
Reproducible: Always
Steps to Reproduce:
1.Replace the mjpeg source in the javascript function with a url of an mjpeg stream. Three examples are given.
2.Run the code
3. Ensure that there are changes in the stream over the whole image
Actual Results:
The first frame fills the correct area
Subsequent frames only change a rectangle starting at the top left taht is smaller than the whole image. The size of the rectangle being bupdated depends on the size of the image. It seems to have the correct aspect ratio but is too small.
Expected Results:
Whole frame should be updated.
This bug has shown up in all versions of Firefox 3 so far. Firefox 2 behaves correctly.
Tested on Linux, Windows XP and Vista.
This is bug is major for our company (Grandeye Ltd) and probably other IP camera manufacturers. We have had many complaints from customers.
Reporter | ||
Comment 1•16 years ago
|
||
You need to find an available server push jpeg stream and substitute it in to the load lavascript function.
Updated•16 years ago
|
Component: General → Layout: Images
Product: Firefox → Core
QA Contact: general → layout.images
Comment 2•8 years ago
|
||
I tried the testcase. I had to replace the mjpeg stream that the img src is changed to to https://cams.weblab.deusto.es/webcam/fishtank1/video.mjpeg and the initial src to a local image I had handy.
I even tried removing the specified size on the img so that the img has to resize when the src changes and it still looked correct to me.
As far as I could tell it was working fine.
Are you still seeing this bug?
Flags: needinfo?(paul.chernett)
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Product: Core Graveyard → Core
Comment 3•6 years ago
|
||
2019-03-06
This bug is part of a group of bugs which have had an open needinfo for at least 12 weeks.
The request for information has not been answered, and we can't move forward on the bug so we are closing it.
If the defect is still present, please reopen this bug with an updated report.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•