update rtc_config

This commit is contained in:
bingochaos
2025-08-28 22:56:20 +08:00
parent e02b43331e
commit c7226f2f2e
3 changed files with 3 additions and 4 deletions

View File

@@ -86026,7 +86026,7 @@
} }
return ( return (
(e.chatRecords = []), (e.chatRecords = []),
(e.peerConnection = new RTCPeerConnection()), (e.peerConnection = new RTCPeerConnection(e.rtcConfig)),
e.peerConnection.addEventListener( e.peerConnection.addEventListener(
'connectionstatechange', 'connectionstatechange',
(function () { (function () {

View File

@@ -66214,7 +66214,7 @@ const ba = i5('visionStore', {
const n = ba() const n = ba()
this.streamState === 'closed' this.streamState === 'closed'
? ((this.chatRecords = []), ? ((this.chatRecords = []),
(this.peerConnection = new RTCPeerConnection()), (this.peerConnection = new RTCPeerConnection(this.rtcConfig)),
this.peerConnection.addEventListener('connectionstatechange', async (t) => { this.peerConnection.addEventListener('connectionstatechange', async (t) => {
switch (this.peerConnection.connectionState) { switch (this.peerConnection.connectionState) {
case 'connected': case 'connected':

View File

@@ -301,7 +301,7 @@ export const useVideoChatStore = defineStore('videoChatStore', {
const visionState = useVisionStore() const visionState = useVisionStore()
if (this.streamState === 'closed') { if (this.streamState === 'closed') {
this.chatRecords = [] this.chatRecords = []
this.peerConnection = new RTCPeerConnection() // TODO RTC_configuration this.peerConnection = new RTCPeerConnection(this.rtcConfig)
this.peerConnection.addEventListener('connectionstatechange', async (event) => { this.peerConnection.addEventListener('connectionstatechange', async (event) => {
switch (this.peerConnection!.connectionState) { switch (this.peerConnection!.connectionState) {
case 'connected': case 'connected':
@@ -321,7 +321,6 @@ export const useVideoChatStore = defineStore('videoChatStore', {
.then(([dataChannel, webRTCId]) => { .then(([dataChannel, webRTCId]) => {
this.streamState = StreamState.open this.streamState = StreamState.open
this.webRTCId = webRTCId as string this.webRTCId = webRTCId as string
// TODO GS
this.chatDataChannel = dataChannel as any this.chatDataChannel = dataChannel as any
if (this.avatarType && this.avatarWSRoute) { if (this.avatarType && this.avatarWSRoute) {