This commit is contained in:
parent
a3095d2572
commit
960096812a
|
|
@ -124,7 +124,6 @@ const Meeting: React.FC = () => {
|
|||
agora.init()
|
||||
agora.registerEventHandler({
|
||||
onJoinChannelSuccess: async (info: any, _elapsed: any) => {
|
||||
console.log(info.localUid, '加入');
|
||||
await onInvoke('joinChannel', {
|
||||
roomNum: info.channelId,
|
||||
enableMicr: true,
|
||||
|
|
@ -140,7 +139,6 @@ const Meeting: React.FC = () => {
|
|||
}, 1000);
|
||||
},
|
||||
onUserJoined: async (info: any, remoteUid: any, _elapsed: any) => {
|
||||
console.log(remoteUid, '远端');
|
||||
await getRoomUser()
|
||||
setTimeout(() => {
|
||||
agora.setupRemoteVideoJoin({
|
||||
|
|
@ -151,7 +149,6 @@ const Meeting: React.FC = () => {
|
|||
}, 1000);
|
||||
},
|
||||
onUserOffline: async (info: any, remoteUid: any, reason: any) => {
|
||||
console.log(remoteUid, "离开");
|
||||
agora.setupRemoteVideo({
|
||||
account: Number(remoteUid),
|
||||
view: document.getElementById(`video-${remoteUid}`) as HTMLElement,
|
||||
|
|
@ -159,7 +156,7 @@ const Meeting: React.FC = () => {
|
|||
})
|
||||
setTimeout(() => {
|
||||
getRoomUser()
|
||||
}, 3000);
|
||||
}, 1000);
|
||||
}
|
||||
})
|
||||
agora.setCameraCapture(VideoSourceType.VideoSourceCameraPrimary)
|
||||
|
|
|
|||
Loading…
Reference in New Issue