This commit is contained in:
parent
67529e7efe
commit
d4b0437964
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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降噪
|
||||
|
|
|
|||
Loading…
Reference in New Issue