mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2024-11-08 09:11:52 +00:00
refactor(preview): use bind to property feature
This commit is contained in:
parent
8002296e79
commit
e278ea149e
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
<capture-options v-else></capture-options>
|
||||
|
||||
<div ref="previewcontainer" class="preview">
|
||||
<video ref="preview" class="preview-visual" preload="yes" autoplay muted playsinline webkit-playsinline></video>
|
||||
<video ref="preview" class="preview-visual" preload="yes" :srcObject.prop="mediaStream" autoplay muted playsinline webkit-playsinline></video>
|
||||
</div>
|
||||
|
||||
<button class="capture-btn" :class="{ 'capture-btn--capturing': capturing.status }" @click.prevent="startCapture">Capture</button>
|
||||
|
@ -89,7 +89,6 @@ export default {
|
|||
|
||||
},
|
||||
mounted: function () {
|
||||
this.$refs.preview.srcObject = this.mediaStream
|
||||
this.getpreviewcontainerSquare()
|
||||
|
||||
// On load
|
||||
|
|
Loading…
Reference in a new issue