From 254fd58c4008f6d58f8fd07d65c135484b9150e4 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 19 Dec 2025 12:03:29 -0500 Subject: [PATCH] Use css style= to set width of video tag, and if height is specified, also set it. Fixes streams not having height. --- web/includes/Monitor.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index 858f5f236..521884993 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -1182,9 +1182,10 @@ class Monitor extends ZM_Object { $streamSrc = $this->getStreamSrc($options); $html .= getImageStreamHTML('liveStream'.$this->Id(), $streamSrc, $options['width'], $options['height'], $this->Name()); } else if ($this->JanusEnabled() or ($this->RTSP2WebEnabled() and ZM_RTSP2WEB_PATH) or ($this->Go2RTCEnabled() and ZM_GO2RTC_PATH)) { - $html .= ''; + $html .= ''; } else if (($options['mode'] == 'stream' or $options['mode'] == 'paused') and canStream() ) { $options['mode'] = 'jpeg'; $streamSrc = $this->getStreamSrc($options);