<template> <div id="app"> <video ref="video" id="video" autoplay playsinline ></video> </div> </template> <script> export default { name: 'app', data () { return { video: {} } }, mounted () { const medias = {audio: false, video: { facingMode: { exact: 'environment' //リアカメラの設定 } }} this.video = this.$refs.video if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { navigator.mediaDevi