From 09add8d351f6c5698d208f7c7e63953762c51b78 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 4 Apr 2021 23:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=8D=95=E6=8D=89?= =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/webrtc/ZLMRTCClient.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/webrtc/ZLMRTCClient.js b/www/webrtc/ZLMRTCClient.js index b1e049ab..969178b6 100644 --- a/www/webrtc/ZLMRTCClient.js +++ b/www/webrtc/ZLMRTCClient.js @@ -7307,8 +7307,9 @@ var ZLMRTCClient = (function (exports) { } start() { - let audioConstraints = new AudioTrackConstraints(AudioSourceInfo.SCREENCAST); - let videoConstraints = new VideoTrackConstraints(VideoSourceInfo.SCREENCAST); + //todo 此处修改捕获桌面或摄像头 + let audioConstraints = new AudioTrackConstraints(AudioSourceInfo.MIC); + let videoConstraints = new VideoTrackConstraints(VideoSourceInfo.CAMERA); MediaStreamFactory.createMediaStream(new StreamConstraints(audioConstraints, videoConstraints)).then(stream => { this._localStream = stream; this.dispatch(Events$1.WEBRTC_ON_LOCAL_STREAM, stream);