2014-12-22 10:54:27 +08:00
|
|
|
<div ng-show="monitor.Type == 'Local'">
|
2014-12-17 06:06:54 +08:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['DevicePath'] ?></label>
|
2014-12-22 10:54:27 +08:00
|
|
|
<input type="text" class="form-control" ng-model="monitor.Device" ng-required="monitor.Type == 'Local'"/>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['CaptureMethod'] ?></label>
|
|
|
|
<?= buildSelect( "newMonitor[Method]", $localMethods, "submitTab( '$tab' )" ); ?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if ( ZM_HAS_V4L1 && $newMonitor['Method'] == 'v4l1' )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['DeviceChannel'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select ng-model="monitor.Channel"><?php foreach ( $v4l1DeviceChannels as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Channel'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['DeviceFormat'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select ng-model="monitor.Format"><?php foreach ( $v4l1DeviceFormats as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Format'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['CapturePalette'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select ng-model="monitor.Palette"><?php foreach ( $v4l1LocalPalettes as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Palette'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['DeviceChannel'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select ng-model="monitor.Channel"><?php foreach ( $v4l2DeviceChannels as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Channel'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['DeviceFormat'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select ng-model="monitor.Format"><?php foreach ( $v4l2DeviceFormats as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Format'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['CapturePalette'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select ng-model="monitor.Palette"><?php foreach ( $v4l2LocalPalettes as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Palette'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="radio">
|
|
|
|
<?= $SLANG['V4LMultiBuffer'] ?>
|
|
|
|
|
|
|
|
<label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<input type="radio" ng-model="monitor.V4LMultiBuffer" id="newMonitor[V4LMultiBuffer]1" value="1" <?php echo ( $newMonitor['V4LMultiBuffer'] == 1 ? 'checked="checked"' : '' ) ?>/>
|
2014-12-17 06:06:54 +08:00
|
|
|
Yes
|
|
|
|
</label>
|
|
|
|
<label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<input type="radio" ng-model="monitor.V4LMultiBuffer" id="newMonitor[V4LMultiBuffer]0" value="0" <?php echo ( $newMonitor['V4LMultiBuffer'] == 0 ? 'checked="checked"' : '' ) ?>/>
|
2014-12-17 06:06:54 +08:00
|
|
|
No
|
|
|
|
</label>
|
|
|
|
<label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<input type="radio" ng-model="monitor.V4LMultiBuffer" id="newMonitor[V4LMultiBuffer]" value="" <?php echo ( empty($newMonitor['V4LMultiBuffer']) ? 'checked="checked"' : '' ) ?>/>
|
2014-12-17 06:06:54 +08:00
|
|
|
Use Config Value
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['V4LCapturesPerFrame'] ?></label>
|
2014-12-22 10:47:04 +08:00
|
|
|
<input type="text" ng-model="monitor.V4LCapturesPerFrame" />
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
</div> <!-- End local -->
|