This commit is contained in:
parent
b042e1b62d
commit
2190619732
|
|
@ -153,7 +153,7 @@ const agora = {
|
|||
},
|
||||
// 摄像头采集
|
||||
setCameraCapture: (sourceType: number) => {
|
||||
// agora.stopScreenCapture()
|
||||
agora.stopScreenCapture()
|
||||
if (sourceType !== option.sourceType) {
|
||||
rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
|
||||
option.sourceType = sourceType
|
||||
|
|
@ -179,7 +179,7 @@ const agora = {
|
|||
// 共享屏幕采集
|
||||
setDesktopCapturerVideo: async (targetSource: any, sourceType: number) => {
|
||||
if (sourceType !== option.sourceType) {
|
||||
// await rtcEngine.stopCameraCapture(option.sourceType)
|
||||
await rtcEngine.stopCameraCapture(option.sourceType)
|
||||
rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
|
||||
option.sourceType = sourceType
|
||||
agora.setupLocalVideo({
|
||||
|
|
|
|||
Loading…
Reference in New Issue