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 (
|
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 () {
|
||||||
|
|||||||
2
dist/assets/index.js
vendored
2
dist/assets/index.js
vendored
@@ -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':
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user