handle scale not being defined when using mpeg streaming

This commit is contained in:
Isaac Connor 2018-04-18 11:28:19 -04:00
parent 00b7ae9006
commit e3afa5e309
1 changed files with 1 additions and 1 deletions

View File

@ -2132,7 +2132,7 @@ function getStreamHTML( $monitor, $options = array() ) {
if ( ZM_WEB_STREAM_METHOD == 'mpeg' && ZM_MPEG_LIVE_FORMAT ) { if ( ZM_WEB_STREAM_METHOD == 'mpeg' && ZM_MPEG_LIVE_FORMAT ) {
$streamSrc = $monitor->getStreamSrc( array( $streamSrc = $monitor->getStreamSrc( array(
'mode'=>'mpeg', 'mode'=>'mpeg',
'scale'=>$options['scale'], 'scale'=>(isset($options['scale'])?$options['scale']:100),
'bitrate'=>ZM_WEB_VIDEO_BITRATE, 'bitrate'=>ZM_WEB_VIDEO_BITRATE,
'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS,
'format' => ZM_MPEG_LIVE_FORMAT 'format' => ZM_MPEG_LIVE_FORMAT