From a57206ef5493b5cfabbaf09caecfe9ebb333b8ea Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 20 Jan 2022 09:47:36 -0500 Subject: [PATCH] Implement getMonitorStateHTML to synchronize it between montage and live view, cycle etc. Reuseable code. Also the structure is required by MonitorStream.js --- web/includes/Monitor.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index c8fa6ebb1..09d4657a8 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -719,5 +719,27 @@ class Monitor extends ZM_Object { } return $this->{'Manufacturer'}; } + function getMonitorStateHTML() { + $html = ' +
+
+ '.translate('State').': + fps + fps +'; + if ( $this->Function() == 'Modect' or $this->Function() == 'Mocord' ) { + $html .= ' fps + '; + } + $html .= ' + + + + '. translate('Zoom').': x +
+
+'; + return $html; + } } // end class Monitor ?>