This commit is contained in:
yj 2024-08-12 16:18:50 +08:00
parent fcefaea359
commit 7eb1b2d1dc
1 changed files with 1 additions and 6 deletions

View File

@ -162,15 +162,10 @@ const Meeting: React.FC = () => {
}, 1000);
}
},
onUserOffline: async (info: any, remoteUid: any, _reason: any) => {
onUserOffline: async (_info: any, remoteUid: any, _reason: any) => {
if (String(remoteUid).length === 9) {
setIsShare(null)
}
await agora.setupRemoteVideo({
uid: Number(remoteUid),
view: null,
channelId: info.channelId,
})
setCurrentVideoId((res: any) => {
if (Number(res) === remoteUid) {
getShowUser();