Add loading SecondPath in monitor

This commit is contained in:
Isaac Connor 2021-03-03 09:55:23 -05:00
parent a01a24ec36
commit ce4e133c94
3 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,7 @@ class Monitor extends ZM_Object {
'Port' => '',
'SubPath' => '',
'Path' => null,
'SecondPath' => null,
'Options' => null,
'User' => null,
'Pass' => null,

View File

@ -11,6 +11,8 @@
textarea,
input[name="newMonitor[Name]"],
input[name="newMonitor[Path]"],
input[name="newMonitor[SecondPath]"],
input[name="newMonitor[LabelFormat]"],
input[name="newMonitor[ControlDevice]"],
input[name="newMonitor[ControlAddress]"] {

View File

@ -823,7 +823,7 @@ include('_monitor_source_nvsocket.php');
if ( $monitor->Type() == 'Ffmpeg' ) {
?>
<tr class="SourceSecondPath">
<td><?php echo translate('SourceSecondPath') ?></td>
<td class="text-right pr-3"><?php echo translate('SourceSecondPath') ?></td>
<td><input type="text" name="newMonitor[SecondPath]" value="<?php echo validHtmlStr($monitor->SecondPath()) ?>" /></td>
</tr>
<tr class="DecoderHWAccelName">