Merge branch 'master' into fix_whitespace
This commit is contained in:
commit
ebd2d050bf
|
@ -41,10 +41,14 @@ if ( isset( $_REQUEST['rate'] ) )
|
||||||
$rate = validInt($_REQUEST['rate']);
|
$rate = validInt($_REQUEST['rate']);
|
||||||
else
|
else
|
||||||
$rate = reScale( RATE_BASE, $event['DefaultRate'], ZM_WEB_DEFAULT_RATE );
|
$rate = reScale( RATE_BASE, $event['DefaultRate'], ZM_WEB_DEFAULT_RATE );
|
||||||
if ( isset( $_REQUEST['scale'] ) )
|
|
||||||
|
if ( isset( $_REQUEST['scale'] ) ) {
|
||||||
$scale = validInt($_REQUEST['scale']);
|
$scale = validInt($_REQUEST['scale']);
|
||||||
else
|
} else if ( isset( $_COOKIE['zmEventScale'.$event['MonitorId']] ) ) {
|
||||||
|
$scale = $_COOKIE['zmEventScale'.$event['MonitorId']];
|
||||||
|
} else {
|
||||||
$scale = reScale( SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
|
$scale = reScale( SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
|
||||||
|
}
|
||||||
|
|
||||||
$replayModes = array(
|
$replayModes = array(
|
||||||
'single' => translate('ReplaySingle'),
|
'single' => translate('ReplaySingle'),
|
||||||
|
|
|
@ -13,6 +13,7 @@ function changeScale()
|
||||||
var newHeight = ( baseHeight * scale ) / SCALE_BASE;
|
var newHeight = ( baseHeight * scale ) / SCALE_BASE;
|
||||||
|
|
||||||
streamScale( scale );
|
streamScale( scale );
|
||||||
|
Cookie.write( 'zmEventScale'+eventData.MonitorId, scale, { duration: 10*365 } );
|
||||||
|
|
||||||
/*Stream could be an applet so can't use moo tools*/
|
/*Stream could be an applet so can't use moo tools*/
|
||||||
var streamImg = document.getElementById('evtStream');
|
var streamImg = document.getElementById('evtStream');
|
||||||
|
|
|
@ -27,6 +27,7 @@ var connKey = '<?php echo $connkey ?>';
|
||||||
|
|
||||||
var eventData = {
|
var eventData = {
|
||||||
Id: <?php echo $event['Id'] ?>,
|
Id: <?php echo $event['Id'] ?>,
|
||||||
|
MonitorId: <?php echo $event['MonitorId'] ?>,
|
||||||
Width: <?php echo $event['Width'] ?>,
|
Width: <?php echo $event['Width'] ?>,
|
||||||
Height: <?php echo $event['Height'] ?>,
|
Height: <?php echo $event['Height'] ?>,
|
||||||
Length: <?php echo $event['Length'] ?>
|
Length: <?php echo $event['Length'] ?>
|
||||||
|
|
|
@ -32,8 +32,7 @@ function changeScale()
|
||||||
var newWidth = ( monitorWidth * scale ) / SCALE_BASE;
|
var newWidth = ( monitorWidth * scale ) / SCALE_BASE;
|
||||||
var newHeight = ( monitorHeight * scale ) / SCALE_BASE;
|
var newHeight = ( monitorHeight * scale ) / SCALE_BASE;
|
||||||
|
|
||||||
// This causes FF3 to kill the stream now, ok with FF2
|
Cookie.write( 'zmWatchScale'+monitorId, scale, { duration: 10*365 } );
|
||||||
//streamCmdScale( scale );
|
|
||||||
|
|
||||||
/*Stream could be an applet so can't use moo tools*/
|
/*Stream could be an applet so can't use moo tools*/
|
||||||
var streamImg = document.getElementById('liveStream');
|
var streamImg = document.getElementById('liveStream');
|
||||||
|
|
|
@ -44,10 +44,13 @@ else
|
||||||
|
|
||||||
$showPtzControls = ( ZM_OPT_CONTROL && $monitor->Controllable() && canView( 'Control' ) );
|
$showPtzControls = ( ZM_OPT_CONTROL && $monitor->Controllable() && canView( 'Control' ) );
|
||||||
|
|
||||||
if ( isset( $_REQUEST['scale'] ) )
|
if ( isset( $_REQUEST['scale'] ) ) {
|
||||||
$scale = validInt($_REQUEST['scale']);
|
$scale = validInt($_REQUEST['scale']);
|
||||||
else
|
} else if ( isset( $_COOKIE['zmWatchScale'.$mid] ) ) {
|
||||||
|
$scale = $_COOKIE['zmWatchScale'.$mid];
|
||||||
|
} else {
|
||||||
$scale = reScale( SCALE_BASE, $monitor->DefaultScale, ZM_WEB_DEFAULT_SCALE );
|
$scale = reScale( SCALE_BASE, $monitor->DefaultScale, ZM_WEB_DEFAULT_SCALE );
|
||||||
|
}
|
||||||
|
|
||||||
$connkey = generateConnKey();
|
$connkey = generateConnKey();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue