use options[maxfps] instead of always specifying 30fps.

This commit is contained in:
Isaac Connor 2021-12-16 16:36:38 -05:00
parent 30e4d72c1d
commit 4dd454325c
1 changed files with 3 additions and 1 deletions

View File

@ -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'] );