去除测试
This commit is contained in:
parent
98ef1f62ba
commit
10e5312584
|
|
@ -141,16 +141,16 @@ const agora = {
|
||||||
},
|
},
|
||||||
// 摄像头采集
|
// 摄像头采集
|
||||||
setCameraCapture: (sourceType: number) => {
|
setCameraCapture: (sourceType: number) => {
|
||||||
agora.stopScreenCapture()
|
option.sourceType = sourceType
|
||||||
if (sourceType !== option.sourceType) {
|
// agora.stopScreenCapture()
|
||||||
rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
|
// if (sourceType !== option.sourceType) {
|
||||||
option.sourceType = sourceType
|
// rtcEngine.destroyRendererByConfig(option.sourceType, option.channelId, option.account)
|
||||||
agora.setupLocalVideo({
|
// agora.setupLocalVideo({
|
||||||
account: Number(option.userid),
|
// account: Number(option.userid),
|
||||||
view: document.getElementById(`video-${option.userid}`),
|
// view: document.getElementById(`video-${option.userid}`),
|
||||||
channelId: option.channelId,
|
// channelId: option.channelId,
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {})
|
rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {})
|
||||||
},
|
},
|
||||||
// 加入频道
|
// 加入频道
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue