From 4dd454325c020c51c824e932915d20c657395834 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 16 Dec 2021 16:36:38 -0500 Subject: [PATCH] use options[maxfps] instead of always specifying 30fps. --- web/includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 89d2cc8ad..6f292357e 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2070,7 +2070,9 @@ function getStreamHTML($monitor, $options = array()) { if ( ! isset($options['height'] ) ) $options['height'] = 0; - $options['maxfps'] = ZM_WEB_VIDEO_MAXFPS; + if (!isset($options['maxfps'])) { + $options['maxfps'] = ZM_WEB_VIDEO_MAXFPS; + } if ( $monitor->StreamReplayBuffer() ) $options['buffer'] = $monitor->StreamReplayBuffer(); //Warning("width: " . $options['width'] . ' height: ' . $options['height']. ' scale: ' . $options['scale'] );