yangjie #46

Merged
yangqiang merged 15 commits from yangjie into master 2025-01-03 10:43:27 +08:00
1 changed files with 11 additions and 15 deletions
Showing only changes of commit 3723873d71 - Show all commits

View File

@ -1226,22 +1226,18 @@ const Meeting: React.FC = () => {
// 刷新 // 刷新
const refreshVideoView = async (userItem: any): Promise<void> => { const refreshVideoView = async (userItem: any): Promise<void> => {
if (userItem.uid === userInfo.uid) { if (userItem.uid === userInfo.uid) {
setTimeout(async () => { await agora.setupLocalVideo({
await agora.setupLocalVideo({ uid: Number(userItem.uid),
uid: Number(userItem.uid), view: document.getElementById(`video-${userItem.uid}`),
view: document.getElementById(`video-${userItem.uid}`), channelId: state.channelId,
channelId: state.channelId, sourceType: VideoSourceType.VideoSourceCameraPrimary,
sourceType: VideoSourceType.VideoSourceCameraPrimary, })
})
}, 1500);
} else { } else {
setTimeout(async () => { await agora.setupRemoteVideoJoin({
await agora.setupRemoteVideoJoin({ uid: Number(userItem.uid),
uid: Number(userItem.uid), view: document.getElementById(`video-${userItem.uid}`),
view: document.getElementById(`video-${userItem.uid}`), channelId: state.channelId,
channelId: state.channelId, })
})
}, 1500);
} }
} }
// 替换数据 // 替换数据