去除测试

This commit is contained in:
yj 2024-07-17 11:01:41 +08:00
parent 98ef1f62ba
commit 10e5312584
1 changed files with 10 additions and 10 deletions

View File

@ -141,16 +141,16 @@ const agora = {
}, },
// 摄像头采集 // 摄像头采集
setCameraCapture: (sourceType: number) => { setCameraCapture: (sourceType: number) => {
agora.stopScreenCapture()
if (sourceType !== option.sourceType) {
rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
option.sourceType = sourceType option.sourceType = sourceType
agora.setupLocalVideo({ // agora.stopScreenCapture()
account: Number(option.userid), // if (sourceType !== option.sourceType) {
view: document.getElementById(`video-${option.userid}`), // rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
channelId: option.channelId, // agora.setupLocalVideo({
}) // account: Number(option.userid),
} // view: document.getElementById(`video-${option.userid}`),
// channelId: option.channelId,
// })
// }
rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {}) rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {})
}, },
// 加入频道 // 加入频道