yangjie #28

Merged
yangqiang merged 32 commits from yangjie into master 2024-10-29 15:15:48 +08:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit d4b0437964 - Show all commits

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降噪