|
@@ -23,17 +23,11 @@ videoRecorder.on('record', (data: Blob) => {
|
|
|
videoRecorder.on('endRecord', () => {
|
|
|
//结束录屏event
|
|
|
});
|
|
|
-// window.videoRecorder = videoRecorder;
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
<div>
|
|
|
- <!-- <a href="https://vitejs.dev" target="_blank">
|
|
|
- <img src="/vite.svg" class="logo" alt="Vite logo" />
|
|
|
- </a>
|
|
|
- <a href="https://vuejs.org/" target="_blank">
|
|
|
- <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
|
|
- </a> -->
|
|
|
</div>
|
|
|
<button type="button" @click="videoRecorder.startRecord">开始录屏</button>
|
|
|
<button type="button" @click="videoRecorder.endRecord">停止录屏</button>
|