修复退出画面错误
This commit is contained in:
parent
cfbfa58edc
commit
79aafb23b9
|
|
@ -42,13 +42,12 @@ const agora = {
|
|||
onUserOffline: (info: any, remoteUid: any, reason: any) => {
|
||||
// 远端用户离开频道后,关闭远端视频窗口
|
||||
storage.setItem('isRemotJoin', false)
|
||||
console.log(info);
|
||||
rtcEngine.setupRemoteVideo(
|
||||
{
|
||||
renderMode: RenderModeType.RenderModeFit,
|
||||
sourceType: VideoSourceType.VideoSourceRemote,
|
||||
uid: Number(info.localUid),
|
||||
view: document.getElementById(`video-${info.localUid}`),
|
||||
view: document.getElementById(`video-${remoteUid}`),
|
||||
setupMode: VideoViewSetupMode.VideoViewSetupRemove,
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue