| | |
| | | <template> |
| | | <div class="home"> |
| | | <img alt="Vue logo" src="../assets/logo.png"> |
| | | <HelloWorld msg="Welcome to Your Vue.js App"/> |
| | | </div> |
| | | <div> |
| | | <video></video> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | // @ is an alias to /src |
| | | import HelloWorld from '@/components/HelloWorld.vue' |
| | | |
| | | export default { |
| | | name: 'Home', |
| | | components: { |
| | | HelloWorld |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | export default { |
| | | name: 'Home', |
| | | methods: { |
| | | close() { |
| | | console.log(this.$remote.sendSync('close-all', 12)); |
| | | }, |
| | | |
| | | async getMedias(){ |
| | | (await navigator.mediaDevices.enumerateDevices()).forEach(item=>{ |
| | | console.log(item) |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | |
| | | async mounted() { |
| | | await this.getMedias(); |
| | | |
| | | this.$remote.send('pushStream'); |
| | | } |
| | | |
| | | |
| | | } |
| | | </script> |