mirror of
https://github.com/HumanAIGC-Engineering/OpenAvatarChat-WebUI.git
synced 2026-02-04 09:29:21 +08:00
update rtc_config
This commit is contained in:
2
dist/assets/index-legacy.js
vendored
2
dist/assets/index-legacy.js
vendored
@@ -86026,7 +86026,7 @@
|
||||
}
|
||||
return (
|
||||
(e.chatRecords = []),
|
||||
(e.peerConnection = new RTCPeerConnection()),
|
||||
(e.peerConnection = new RTCPeerConnection(e.rtcConfig)),
|
||||
e.peerConnection.addEventListener(
|
||||
'connectionstatechange',
|
||||
(function () {
|
||||
|
||||
2
dist/assets/index.js
vendored
2
dist/assets/index.js
vendored
@@ -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':
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user