Ver código fonte

开启摄像头

liushengqiang 1 ano atrás
pai
commit
3cb6513ee9
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      src/view/evaluating/index.tsx

+ 6 - 0
src/view/evaluating/index.tsx

@@ -264,6 +264,12 @@ export const handleStartBegin = async () => {
 	}
 	//开始录音
 	await api_startRecording();
+
+	// 如果开启了摄像头, 开启录制视频
+	if (state.setting.camera && state.setting.saveToAlbum) {
+		console.log("开始录制视频");
+		api_startCapture();
+	}
 };
 
 /** 播放音乐 */