mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 04:04:03 -05:00
Merge pull request #6088 from singhharsh1708/fix/ptz-rotated-move-command
fix: send moveStop again on rotated and flipped PTZ monitors
This commit is contained in:
1 file changed
+10
-6
@@ -212,9 +212,11 @@ function buildControlCommand($monitor) {
|
||||
'DownRight' => 'UpRight',
|
||||
),
|
||||
);
|
||||
$new_dirn = $conversions[$monitor->Orientation()][$dirn];
|
||||
$_REQUEST['control'] = preg_replace( "/$dirn\$/", "$new_dirn", $_REQUEST['control'] );
|
||||
$dirn = $new_dirn;
|
||||
if ( isset($conversions[$monitor->Orientation()][$dirn]) ) {
|
||||
$new_dirn = $conversions[$monitor->Orientation()][$dirn];
|
||||
$_REQUEST['control'] = preg_replace( "/$dirn\$/", "$new_dirn", $_REQUEST['control'] );
|
||||
$dirn = $new_dirn;
|
||||
}
|
||||
}
|
||||
|
||||
if ( $control->HasPanSpeed() && $xFactor ) {
|
||||
@@ -712,9 +714,11 @@ function buildControlCommand($monitor) {
|
||||
'DownRight' => 'UpRight',
|
||||
),
|
||||
);
|
||||
$new_dirn = $conversions[$monitor->Orientation()][$dirn];
|
||||
$_REQUEST['control'] = preg_replace( "/$dirn\$/", "$new_dirn", $_REQUEST['control'] );
|
||||
$dirn = $new_dirn;
|
||||
if ( isset($conversions[$monitor->Orientation()][$dirn]) ) {
|
||||
$new_dirn = $conversions[$monitor->Orientation()][$dirn];
|
||||
$_REQUEST['control'] = preg_replace( "/$dirn\$/", "$new_dirn", $_REQUEST['control'] );
|
||||
$dirn = $new_dirn;
|
||||
}
|
||||
}
|
||||
|
||||
if ( $control->HasPanSpeed() && $xFactor ) {
|
||||
|
||||
Reference in new issue
Block a user