This commit is contained in:
yj 2024-08-06 17:25:23 +08:00
parent 9be4e89302
commit 2c8f281a0f
2 changed files with 5 additions and 5 deletions

View File

@ -129,7 +129,7 @@ const Meeting: React.FC = () => {
await getRoomUser()
setTimeout(() => {
agora.setupLocalVideo({
account: Number(info.localUid),
uid: Number(info.localUid),
view: document.getElementById(`video-${info.localUid}`) as HTMLElement,
channelId: info.channelId,
sourceType: VideoSourceType.VideoSourceCameraPrimary,
@ -141,7 +141,7 @@ const Meeting: React.FC = () => {
await getRoomUser()
setTimeout(() => {
agora.setupRemoteVideoJoin({
account: Number(remoteUid),
uid: Number(remoteUid),
view: document.getElementById(`video-${remoteUid}`) as HTMLElement,
channelId: info.channelId,
})
@ -149,7 +149,7 @@ const Meeting: React.FC = () => {
},
onUserOffline: async (info: any, remoteUid: any, _reason: any) => {
await agora.setupRemoteVideo({
account: Number(remoteUid),
uid: Number(remoteUid),
view: document.getElementById(`video-${remoteUid}`) as HTMLElement,
channelId: info.channelId,
})

View File

@ -152,7 +152,7 @@ const agora = {
agora.stopScreenCapture()
// rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
agora.setupLocalVideo({
account: Number(option.uid),
uid: Number(option.uid),
view: document.getElementById(`video-${option.uid}`),
channelId: option.channelId,
sourceType: VideoSourceType.VideoSourceCameraPrimary,
@ -188,7 +188,7 @@ const agora = {
}
);
await agora.setupLocalVideo({
account: Number(user.uid),
uid: Number(user.uid),
view: document.getElementById(`look-video`),
channelId: option.channelId,
sourceType: VideoSourceType.VideoSourceScreen,