diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts index 82e7e45..f2fce05 100644 --- a/src/utils/package/agora.ts +++ b/src/utils/package/agora.ts @@ -141,16 +141,16 @@ const agora = { }, // 摄像头采集 setCameraCapture: (sourceType: number) => { - agora.stopScreenCapture() - if (sourceType !== option.sourceType) { - rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account) - option.sourceType = sourceType - agora.setupLocalVideo({ - account: Number(option.userid), - view: document.getElementById(`video-${option.userid}`), - channelId: option.channelId, - }) - } + option.sourceType = sourceType + // agora.stopScreenCapture() + // if (sourceType !== option.sourceType) { + // rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account) + // agora.setupLocalVideo({ + // account: Number(option.userid), + // view: document.getElementById(`video-${option.userid}`), + // channelId: option.channelId, + // }) + // } rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {}) }, // 加入频道