|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <teleport :to="appEl" v-if="appEl">dasdad
|
|
|
+ <teleport :to="appEl" v-if="appEl">
|
|
|
<Toolbar :showBottomBar="showBottomBar" class="shot-ctrl">
|
|
|
<el-button type="primary" class="btn" @click="close">取消</el-button>
|
|
|
<el-button
|
|
|
@@ -76,6 +76,7 @@ const stream = ref(null)
|
|
|
// 开始录屏
|
|
|
const startRecording = async () => {
|
|
|
console.log('startRecording')
|
|
|
+ showBottomBar.value = false
|
|
|
try {
|
|
|
// 获取屏幕流(包含音频选项)
|
|
|
stream.value = await navigator.mediaDevices.getDisplayMedia({
|
|
|
@@ -300,11 +301,11 @@ watch([blobs, props], async () => {
|
|
|
}
|
|
|
if (!initial) {
|
|
|
initial = true;
|
|
|
- if(isFirefox){
|
|
|
+ // if(isFirefox){
|
|
|
startRecording();
|
|
|
- }else{
|
|
|
- start();
|
|
|
- }
|
|
|
+ // }else{
|
|
|
+ // start();
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
{ immediate: true }
|