This commit is contained in:
yj 2024-08-30 09:37:30 +08:00
parent af97c97f6a
commit d39906d0b0
2 changed files with 5 additions and 4 deletions

View File

@ -559,15 +559,18 @@ const Meeting: React.FC = () => {
}
})
if (state.enableCamera) {
agora.startCameraCapture()
await agora.startCameraCapture()
}
agora.setJoinChannel({
await agora.setJoinChannel({
channelId: state.channelId,
uid: userInfo.uid,
screenShareId: userInfo.screenShareId,
token: state.token,
tokenA: state.tokenA,
})
if (userInfo.roleId === '1') {
await agora.allJoinChannelEx()
}
}
// 状态更新
const changeAgoraDevice = () => {

View File

@ -273,7 +273,6 @@ export const agora = {
},
// 摄像头采集
startCameraCapture: async () => {
console.log(1);
await rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {
format: {
width: 640,
@ -284,7 +283,6 @@ export const agora = {
},
// 停止采集摄像头
stopCameraCapture: async () => {
console.log(2);
await rtcEngine.stopCameraCapture()
},
// 加入频道