From 524ed9841936cee1261e73516a393a0c5f66779e Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Fri, 25 Nov 2022 23:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=81=8A=E5=A4=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD-=E5=BC=80=E5=8F=91=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/components/chat/ChatPrivateVideo.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/im-ui/src/components/chat/ChatPrivateVideo.vue b/im-ui/src/components/chat/ChatPrivateVideo.vue index 1251953..6053a08 100644 --- a/im-ui/src/components/chat/ChatPrivateVideo.vue +++ b/im-ui/src/components/chat/ChatPrivateVideo.vue @@ -58,9 +58,7 @@ username: 'admin' }, { - urls: 'stun:www.boxim.online:3478', - credential: 'admin123', - username: 'admin' + urls: 'stun:www.boxim.online:3478' } ] } @@ -91,6 +89,7 @@ this.timerx && clearInterval(this.timerx); this.timerx = setInterval(() => { console.log(this.peerConnection.iceConnectionState); + console.log(this.peerConnection.iceGatheringState); }, 3000) }); @@ -114,7 +113,7 @@ closeCamera() { if (this.stream) { - this.stream.getVideoTracks().forEach((track) => { + this.stream.getTracks().forEach((track) => { track.stop(); }); this.$refs.mineVideo.srcObject = null;