New template file for camera.pi
This commit is contained in:
parent
c269c62fe6
commit
31f2c5152c
1 changed files with 3 additions and 20 deletions
|
@ -1,23 +1,6 @@
|
|||
<script type="text/javascript" src="{{ url_for('static', filename='js/plugins/camera/index.js') }}"></script>
|
||||
|
||||
<script type="text/x-template" id="tmpl-camera-pi">
|
||||
<div class="camera">
|
||||
<div class="camera-container">
|
||||
<div class="no-frame" v-if="!streaming && !capturing">The camera is not active</div>
|
||||
<img class="frame" ref="frame">
|
||||
</div>
|
||||
|
||||
<div class="controls">
|
||||
<button type="button" @click="startStreaming" :disabled="capturing" v-if="!streaming">
|
||||
<i class="fa fa-play"></i> Start streaming
|
||||
</button>
|
||||
|
||||
<button type="button" @click="stopStreaming" :disabled="capturing" v-else>
|
||||
<i class="fa fa-stop"></i> Stop streaming
|
||||
</button>
|
||||
|
||||
<button type="button" @click="capture" :disabled="streaming || capturing">
|
||||
<i class="fas fa-camera"></i> Take snapshot
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{% include 'plugins/camera/index.html' %}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue