This commit is contained in:
yj 2024-10-29 09:29:56 +08:00
parent 67529e7efe
commit d4b0437964
2 changed files with 2 additions and 1 deletions

View File

@ -962,6 +962,7 @@ const Meeting: React.FC = () => {
}
},
onUserOffline: async (connection: RtcConnection, remoteUid: number, _reason: UserOfflineReasonType) => {
await agora.destroyRendererByConfig(Number(remoteUid), connection.channelId)
if (connection.channelId === state.channelId) {
if (String(remoteUid).length === 9) {
setIsShare(null)

View File

@ -363,7 +363,7 @@ export const agora = {
rtcEngine.muteRemoteVideoStream(uid, mute)
},
// 销毁视频渲染dom
destroyRendererByConfig: async (uid: number, channelId: string) => {
destroyRendererByConfig: async (uid: number, channelId?: string) => {
await rtcEngine.destroyRendererByConfig(VideoSourceType.VideoSourceRemote, channelId, uid);
},
// ai降噪