diff --git a/dist/assets/index-legacy.js b/dist/assets/index-legacy.js index 282d364..3d9ea81 100644 --- a/dist/assets/index-legacy.js +++ b/dist/assets/index-legacy.js @@ -86026,7 +86026,7 @@ } return ( (e.chatRecords = []), - (e.peerConnection = new RTCPeerConnection()), + (e.peerConnection = new RTCPeerConnection(e.rtcConfig)), e.peerConnection.addEventListener( 'connectionstatechange', (function () { diff --git a/dist/assets/index.js b/dist/assets/index.js index 0889f52..964c36b 100644 --- a/dist/assets/index.js +++ b/dist/assets/index.js @@ -66214,7 +66214,7 @@ const ba = i5('visionStore', { const n = ba() this.streamState === 'closed' ? ((this.chatRecords = []), - (this.peerConnection = new RTCPeerConnection()), + (this.peerConnection = new RTCPeerConnection(this.rtcConfig)), this.peerConnection.addEventListener('connectionstatechange', async (t) => { switch (this.peerConnection.connectionState) { case 'connected': diff --git a/src/store/index.ts b/src/store/index.ts index c2d12c4..592ced9 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -301,7 +301,7 @@ export const useVideoChatStore = defineStore('videoChatStore', { const visionState = useVisionStore() if (this.streamState === 'closed') { this.chatRecords = [] - this.peerConnection = new RTCPeerConnection() // TODO RTC_configuration + this.peerConnection = new RTCPeerConnection(this.rtcConfig) this.peerConnection.addEventListener('connectionstatechange', async (event) => { switch (this.peerConnection!.connectionState) { case 'connected': @@ -321,7 +321,6 @@ export const useVideoChatStore = defineStore('videoChatStore', { .then(([dataChannel, webRTCId]) => { this.streamState = StreamState.open this.webRTCId = webRTCId as string - // TODO GS this.chatDataChannel = dataChannel as any if (this.avatarType && this.avatarWSRoute) {