1.19.2 bug
zm_html_view_event.php: Line 79/Line80
if ( !isset( $rate ) )
$rate = ZM_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_WEB_DEFAULT_SCALE;
These constants changed: Now they are a set.
ZM_<H,M,L>_WEB_DEFAULT_SCALE !!!
Easy to fix, right? However....
I noticed that the new set of constant names goes against the previous format
Used to be:
ZM_WEB_<H,M,L>_<blaablaablaa>
Maybe this should be fixed, or is the problem?
In any case, other possible places this is also broken:
zm_html_view_watchfeed.php, Line 36
Still fiddling...
if ( !isset( $rate ) )
$rate = ZM_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_WEB_DEFAULT_SCALE;
These constants changed: Now they are a set.
ZM_<H,M,L>_WEB_DEFAULT_SCALE !!!
Easy to fix, right? However....
I noticed that the new set of constant names goes against the previous format
Used to be:
ZM_WEB_<H,M,L>_<blaablaablaa>
Maybe this should be fixed, or is the problem?
In any case, other possible places this is also broken:
zm_html_view_watchfeed.php, Line 36
Still fiddling...
Yup, that works. For a temporary fix, change:
IN: zm_html_view_event.php: Line 78
if ( !isset( $rate ) )
$rate = ZM_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_WEB_DEFAULT_SCALE;
to
if ( !isset( $rate ) )
$rate = ZM_H_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_H_WEB_DEFAULT_SCALE;
Assuming that your "High" rate is Ok as a temporary default until 19.3 fixes this...
IN: zm_html_view_event.php: Line 78
if ( !isset( $rate ) )
$rate = ZM_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_WEB_DEFAULT_SCALE;
to
if ( !isset( $rate ) )
$rate = ZM_H_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_H_WEB_DEFAULT_SCALE;
Assuming that your "High" rate is Ok as a temporary default until 19.3 fixes this...
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Aaargh, I don't know how the _H_ bits etc got transposed in zmconfig.pl.in but there are a couple ways to fix it.
Firstly, I've upload a patch here which you can use. This corrects the ZM_x_WEB to be ZM_WEB_x for the default rate and scales. You can also do this manually in zmconfig.pl.in if you prefer as it's only in 6 places.
Then do
./configure <your options>
perl zmconfig.pl -noi
and that should do it, you should not need to make or install.
Remember to undo any other changes you have made to get around this problem by the way.
Phil,
Firstly, I've upload a patch here which you can use. This corrects the ZM_x_WEB to be ZM_WEB_x for the default rate and scales. You can also do this manually in zmconfig.pl.in if you prefer as it's only in 6 places.
Then do
./configure <your options>
perl zmconfig.pl -noi
and that should do it, you should not need to make or install.
Remember to undo any other changes you have made to get around this problem by the way.
Phil,
phil the "type" option are missed in the patch? i include this and semms to work.
btw.. i dont fount any bug .. filters works fine. interface ok..
iam working on ttranslation
btw.. i dont fount any bug .. filters works fine. interface ok..
iam working on ttranslation
{
name => "ZM_H_WEB_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_WEB_H_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_H_WEB_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_WEB_H_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_M_WEB_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_WEB_M_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_M_WEB_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_WEB_M_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_L_WEB_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'lowband',
},
{
name => "ZM_WEB_L_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'lowband',
},
{
name => "ZM_L_WEB_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'lowband',
},
{
name => "ZM_WEB_L_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'lowband',
},
Fernando