fix(webrtc): 修复主动关闭旧连接时误报断开通知,并更新 ICE 服务器列表
- 在 createPeerConnectionAndAnswer 中关闭旧连接前设置 suppressDisconnectNotify 标志,抑制 notifyRemoteDisconnected 回调,避免接受新连接时误报远程断开。 - 调整被控端、控制端、Web 控制台及 Flutter 控制端的 ICE 服务器配置,启用了内网 STUN/TURN 服务器并注释掉旧的公网 TURN 服务器。
This commit is contained in:
@@ -16,7 +16,8 @@ export const DEFAULT_ICE_SERVERS = [
|
||||
{ urls: 'stun:47.242.112.133:3478' },
|
||||
{ urls: 'turn:47.242.112.133:3478', username: 'ttstd', credential: 'fanhuitong' },
|
||||
// 内网 TURN(与被控端同局域网时可用)。
|
||||
// { urls: 'stun:192.168.5.224:3478' },
|
||||
{ urls: 'stun:192.168.5.224:3478' },
|
||||
{ urls: 'turn:192.168.5.224:3478', username: 'tt', credential: 'fht' },
|
||||
// { urls: 'turn:192.168.100.224:3478', username: 'tt', credential: 'fht' },
|
||||
// { urls: 'turn:192.168.100.224:3478?transport=tcp', username: 'tt', credential: 'fht' },
|
||||
// { urls: 'stun:stun.l.google.com:19302' },
|
||||
|
||||
Reference in New Issue
Block a user