yangjie #28
|
|
@ -1550,12 +1550,9 @@ const Meeting: React.FC = () => {
|
||||||
// 退出房间
|
// 退出房间
|
||||||
const leaveChannel = async (bool: boolean = true): Promise<void> => {
|
const leaveChannel = async (bool: boolean = true): Promise<void> => {
|
||||||
await stopRecorderMedia()
|
await stopRecorderMedia()
|
||||||
try {
|
|
||||||
if (bool) {
|
if (bool) {
|
||||||
await getLeave()
|
await getLeave()
|
||||||
}
|
}
|
||||||
} catch (error) {
|
|
||||||
}
|
|
||||||
await stopScreenCapture()
|
await stopScreenCapture()
|
||||||
await agora.leaveChannel()
|
await agora.leaveChannel()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue