yangjie #46

Merged
yangqiang merged 15 commits from yangjie into master 2025-01-03 10:43:27 +08:00
1 changed files with 7 additions and 7 deletions
Showing only changes of commit 3bc5994506 - Show all commits

View File

@ -1692,13 +1692,13 @@ const Meeting: React.FC = () => {
// 退出房间 // 退出房间
const leaveChannel = async (bool: boolean = true): Promise<void> => { const leaveChannel = async (bool: boolean = true): Promise<void> => {
setIsLeave(true) setIsLeave(true)
await stopScreenCapture() setTimeout(async () => {
await stopRecorderMedia() await stopScreenCapture()
if (bool) { await stopRecorderMedia()
await getLeave() if (bool) {
} await getLeave()
await agora.leaveChannel() }
setTimeout(() => { await agora.leaveChannel()
setRecorder((res: any) => { setRecorder((res: any) => {
if (res) { if (res) {