<script setup> import { ref } from 'vue'; const stream = ref(null); const startCapture = async () => { console.log("startCapture!"); try { stream.value = await navigator.mediaDevices.getDisplayMedia({ video: true, audio: false, }); dumpOptionsInfo(); } catch (err) { console.error(err); } return stream; } const stopCapture = () => { console.log('stopCapture'); const tracks = stream.value.getTracks(