优化进入房间快速退出提示无效房间号
This commit is contained in:
parent
1ad41eaf26
commit
3bc5994506
|
|
@ -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)
|
||||||
|
setTimeout(async () => {
|
||||||
await stopScreenCapture()
|
await stopScreenCapture()
|
||||||
await stopRecorderMedia()
|
await stopRecorderMedia()
|
||||||
if (bool) {
|
if (bool) {
|
||||||
await getLeave()
|
await getLeave()
|
||||||
}
|
}
|
||||||
await agora.leaveChannel()
|
await agora.leaveChannel()
|
||||||
setTimeout(() => {
|
|
||||||
setRecorder((res: any) => {
|
setRecorder((res: any) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue