Make it clear that audio recording is only for ffmpeg input type
This commit is contained in:
parent
39061038fb
commit
69f7d36729
|
@ -937,7 +937,15 @@ if ( $monitor->Type() == 'Local' ) {
|
|||
?>
|
||||
</td></tr>
|
||||
<tr><td><?php echo translate('OptionalEncoderParam') ?></td><td><textarea name="newMonitor[EncoderParameters]" rows="4" cols="36"><?php echo validHtmlStr($monitor->EncoderParameters()) ?></textarea></td></tr>
|
||||
<tr><td><?php echo translate('RecordAudio') ?></td><td><input type="checkbox" name="newMonitor[RecordAudio]" value="1"<?php if ( $monitor->RecordAudio() ) { ?> checked="checked"<?php } ?>/></td></tr>
|
||||
<tr><td><?php echo translate('RecordAudio') ?></td><td>
|
||||
<?php if ( $monitor->Type() == 'Ffmpeg' ) { ?>
|
||||
<input type="checkbox" name="newMonitor[RecordAudio]" value="1"<?php if ( $monitor->RecordAudio() ) { ?> checked="checked"<?php } ?>/>
|
||||
<?php } else { ?>
|
||||
Audio recording only available with FFMPEG
|
||||
<input type="hidden" name="newMonitor[RecordAudio]" value="<?php echo $monitor->RecordAudio() ? 1 : 0 ?>"/>
|
||||
<?php } ?>
|
||||
</td></tr>
|
||||
|
||||
<?php
|
||||
break;
|
||||
case 'timestamp' :
|
||||
|
|
Loading…
Reference in New Issue