This commit is contained in:
parent
9be4e89302
commit
2c8f281a0f
|
|
@ -129,7 +129,7 @@ const Meeting: React.FC = () => {
|
||||||
await getRoomUser()
|
await getRoomUser()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
agora.setupLocalVideo({
|
agora.setupLocalVideo({
|
||||||
account: Number(info.localUid),
|
uid: Number(info.localUid),
|
||||||
view: document.getElementById(`video-${info.localUid}`) as HTMLElement,
|
view: document.getElementById(`video-${info.localUid}`) as HTMLElement,
|
||||||
channelId: info.channelId,
|
channelId: info.channelId,
|
||||||
sourceType: VideoSourceType.VideoSourceCameraPrimary,
|
sourceType: VideoSourceType.VideoSourceCameraPrimary,
|
||||||
|
|
@ -141,7 +141,7 @@ const Meeting: React.FC = () => {
|
||||||
await getRoomUser()
|
await getRoomUser()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
agora.setupRemoteVideoJoin({
|
agora.setupRemoteVideoJoin({
|
||||||
account: Number(remoteUid),
|
uid: Number(remoteUid),
|
||||||
view: document.getElementById(`video-${remoteUid}`) as HTMLElement,
|
view: document.getElementById(`video-${remoteUid}`) as HTMLElement,
|
||||||
channelId: info.channelId,
|
channelId: info.channelId,
|
||||||
})
|
})
|
||||||
|
|
@ -149,7 +149,7 @@ const Meeting: React.FC = () => {
|
||||||
},
|
},
|
||||||
onUserOffline: async (info: any, remoteUid: any, _reason: any) => {
|
onUserOffline: async (info: any, remoteUid: any, _reason: any) => {
|
||||||
await agora.setupRemoteVideo({
|
await agora.setupRemoteVideo({
|
||||||
account: Number(remoteUid),
|
uid: Number(remoteUid),
|
||||||
view: document.getElementById(`video-${remoteUid}`) as HTMLElement,
|
view: document.getElementById(`video-${remoteUid}`) as HTMLElement,
|
||||||
channelId: info.channelId,
|
channelId: info.channelId,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ const agora = {
|
||||||
agora.stopScreenCapture()
|
agora.stopScreenCapture()
|
||||||
// rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
|
// rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
|
||||||
agora.setupLocalVideo({
|
agora.setupLocalVideo({
|
||||||
account: Number(option.uid),
|
uid: Number(option.uid),
|
||||||
view: document.getElementById(`video-${option.uid}`),
|
view: document.getElementById(`video-${option.uid}`),
|
||||||
channelId: option.channelId,
|
channelId: option.channelId,
|
||||||
sourceType: VideoSourceType.VideoSourceCameraPrimary,
|
sourceType: VideoSourceType.VideoSourceCameraPrimary,
|
||||||
|
|
@ -188,7 +188,7 @@ const agora = {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
await agora.setupLocalVideo({
|
await agora.setupLocalVideo({
|
||||||
account: Number(user.uid),
|
uid: Number(user.uid),
|
||||||
view: document.getElementById(`look-video`),
|
view: document.getElementById(`look-video`),
|
||||||
channelId: option.channelId,
|
channelId: option.channelId,
|
||||||
sourceType: VideoSourceType.VideoSourceScreen,
|
sourceType: VideoSourceType.VideoSourceScreen,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue