77 lines
3.5 KiB
PHP
77 lines
3.5 KiB
PHP
<div ng-show="sourceType == 'Local'">
|
|
|
|
<div class="form-group">
|
|
<label for=""><?= $SLANG['DevicePath'] ?></label>
|
|
<input type="text" class="form-control" name="newMonitor[Device]" value="<?= validHtmlStr($newMonitor['Device']) ?>" size="24"/>
|
|
</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>
|
|
<select name="newMonitor[Channel]"><?php foreach ( $v4l1DeviceChannels as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Channel'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for=""><?= $SLANG['DeviceFormat'] ?></label>
|
|
<select name="newMonitor[Format]"><?php foreach ( $v4l1DeviceFormats as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Format'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for=""><?= $SLANG['CapturePalette'] ?></label>
|
|
<select name="newMonitor[Palette]"><?php foreach ( $v4l1LocalPalettes as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Palette'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
|
</div>
|
|
<?php
|
|
}
|
|
else
|
|
{
|
|
?>
|
|
|
|
<div class="form-group">
|
|
<label for=""><?= $SLANG['DeviceChannel'] ?></label>
|
|
<select name="newMonitor[Channel]"><?php foreach ( $v4l2DeviceChannels as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Channel'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for=""><?= $SLANG['DeviceFormat'] ?></label>
|
|
<select name="newMonitor[Format]"><?php foreach ( $v4l2DeviceFormats as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Format'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for=""><?= $SLANG['CapturePalette'] ?></label>
|
|
<select name="newMonitor[Palette]"><?php foreach ( $v4l2LocalPalettes as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Palette'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
<div class="radio">
|
|
<?= $SLANG['V4LMultiBuffer'] ?>
|
|
|
|
<label>
|
|
<input type="radio" name="newMonitor[V4LMultiBuffer]" id="newMonitor[V4LMultiBuffer]1" value="1" <?php echo ( $newMonitor['V4LMultiBuffer'] == 1 ? 'checked="checked"' : '' ) ?>/>
|
|
Yes
|
|
</label>
|
|
<label>
|
|
<input type="radio" name="newMonitor[V4LMultiBuffer]" id="newMonitor[V4LMultiBuffer]0" value="0" <?php echo ( $newMonitor['V4LMultiBuffer'] == 0 ? 'checked="checked"' : '' ) ?>/>
|
|
No
|
|
</label>
|
|
<label>
|
|
<input type="radio" name="newMonitor[V4LMultiBuffer]" id="newMonitor[V4LMultiBuffer]" value="" <?php echo ( empty($newMonitor['V4LMultiBuffer']) ? 'checked="checked"' : '' ) ?>/>
|
|
Use Config Value
|
|
</label>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for=""><?= $SLANG['V4LCapturesPerFrame'] ?></label>
|
|
<input type="number" name="newMonitor[V4LCapturesPerFrame]" value="<?php echo $newMonitor['V4LCapturesPerFrame'] ?>"/>
|
|
</div>
|
|
</div> <!-- End local -->
|