This commit is contained in:
yj 2024-07-19 17:23:57 +08:00
parent 4317bc92ea
commit 253b336d69
1 changed files with 9 additions and 9 deletions

View File

@ -44,15 +44,15 @@ const agora = {
console.log(info, remoteUid, reason, document.getElementById(`video-${remoteUid}`)); console.log(info, remoteUid, reason, document.getElementById(`video-${remoteUid}`));
storage.setItem('isRemotJoin', false) storage.setItem('isRemotJoin', false)
rtcEngine.setupRemoteVideo( // rtcEngine.setupRemoteVideo(
{ // {
renderMode: RenderModeType.RenderModeFit, // renderMode: RenderModeType.RenderModeFit,
sourceType: VideoSourceType.VideoSourceRemote, // sourceType: VideoSourceType.VideoSourceRemote,
uid: Number(info.localUid), // uid: Number(info.localUid),
view: document.getElementById(`video-${remoteUid}`), // view: document.getElementById(`video-${remoteUid}`),
setupMode: VideoViewSetupMode.VideoViewSetupRemove, // setupMode: VideoViewSetupMode.VideoViewSetupRemove,
}, // },
); // );
}, },
// 视频发布状态改变回调 // 视频发布状态改变回调
onVideoPublishStateChanged: (source: any, channel: any, oldState: any, newState: any, elapseSinceLastState: any) => { onVideoPublishStateChanged: (source: any, channel: any, oldState: any, newState: any, elapseSinceLastState: any) => {