Selaa lähdekoodia

视频聊天功能-开发中

xie.bx 3 vuotta sitten
vanhempi
commit
f11055c67d
1 muutettua tiedostoa jossa 10 lisäystä ja 7 poistoa
  1. 10 7
      im-ui/src/components/chat/ChatPrivateVideo.vue

+ 10 - 7
im-ui/src/components/chat/ChatPrivateVideo.vue

@@ -48,13 +48,16 @@
 				state: 'NOT_CONNECTED',
 				candidates: [],
 				configuration: {
-					iceServers: [
-						{ 'url': 'stun:stun.l.google.com:19302' },
-						{
-						'url': 'turn:www.boxim.online:3478',
-						'credential': "admin123",
-						'username': "admin"
-					}]
+					iceServers: {
+						iceServers: [
+							{
+								'url': 'turn:www.boxim.online:3478',
+								'credential': "admin123",
+								'username': "admin"
+							}
+						],
+						sdpSemantics: 'plan-b'
+					}
 				}
 			}
 		},