This commit is contained in:
parent
9be4e89302
commit
2c8f281a0f
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue