Page 1 of 1

ZM 1.19.(3 or 4) BUG DISCOVERED AND FIXED

Posted: Wed Jun 02, 2004 7:20 pm
by victor_diago
hi al..

zm has a little bug in zm_html_view_event.php
when you use mpeg streaming WITH some dumb plugin (like mplayer-plugin for linux and mozilla) the image gets cuted. its show 320 in width but height arent right.

looking there i ve found these lines

<EMBED type="video/mpeg"
src="<?= $stream_src ?>"
width=<?= reScale( $event['Width'], $scale ) ?>
height=<?= reScale( $event['Height'], $scale ) ?>
AutoStart=true>
</EMBED>

then i ve just quoted the width and height lines

width="<?= reScale( $event['Width'], $scale ) ?>"
height="<?= reScale( $event['Height'], $scale ) ?>"

then everything went right.

this could be at montage view too. i will check.

in windows this change is not relevant since windows media player show the image correct. maybe a little fix to put in another version phil ?

victor diago

Posted: Thu Jun 03, 2004 2:55 pm
by victor_diago
does this matter for anyone ?

Posted: Thu Jun 03, 2004 3:17 pm
by zoneminder
Hi Victor,

I've made a note to check and correct any instances I find in the source. I think in most cases though browsers tend to handle x=y the same as x="y" but there may be some circumstances where this isn't the case.

Phil,