From a38adc0db88a22c46975bf2eecd55f125ed3f111 Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Fri, 25 Nov 2022 17:01:13 +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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/im-ui/src/components/chat/ChatPrivateVideo.vue b/im-ui/src/components/chat/ChatPrivateVideo.vue index 7fc652d..7e84ce1 100644 --- a/im-ui/src/components/chat/ChatPrivateVideo.vue +++ b/im-ui/src/components/chat/ChatPrivateVideo.vue @@ -49,9 +49,9 @@ candidates: [], configuration: { iceServers: [{ - 'urls': 'turn:www.boxim.online:3478', - 'credential': "admin123", - 'username': "admin" + 'url': 'turn:www.boxim.online:3478', + 'credential': 'admin123', + 'username': 'admin' }] } } @@ -177,11 +177,11 @@ this.peerConnection.createOffer((offer) => { this.peerConnection.setLocalDescription(offer); console.log("发送offer") - console.log(offer) + console.log(JSON.stringify(offer)) this.$http({ url: `/webrtc/private/call?uid=${this.friend.id}`, method: 'post', - data: offer + data: JSON.stringify(offer) }).then(() => { this.loading = true; this.state = 'CONNECTING'; @@ -198,12 +198,12 @@ this.peerConnection.setRemoteDescription(new RTCSessionDescription(offer)); this.peerConnection.createAnswer((answer) => { console.log("发送answer") - console.log(answer) + console.log(JSON.stringify(answer)) this.peerConnection.setLocalDescription(answer); this.$http({ url: `/webrtc/private/accept?uid=${this.friend.id}`, method: 'post', - data: answer + data: JSON.stringify(answer) }) this.state = 'CONNECTED'; }, @@ -238,7 +238,7 @@ this.$http({ url: `/webrtc/private/candidate?uid=${this.friend.id}`, method: 'post', - data: candidate + data: JSON.stringify(candidate) }) }, close() {