Files
VibeCoding/webrtc_controller_flutter/lib/config/ice_servers.dart
2026-07-14 12:06:46 +08:00

27 lines
877 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// ICE 服务器配置(与 WebRTCController Android 端保持一致)。
///
/// 注意TURN 用户名/密码为示例凭据,请按需替换为自己的服务器配置。
const List<Map<String, dynamic>> kIceServers = [
{
'urls': 'turn:175.178.213.60:3478',
'username': 'fanhuitong',
'credential': 'Fan19961207..',
},
{
'urls': 'turn:192.168.5.224:3478',
'username': 'tt',
'credential': 'fht',
},
{'urls': 'stun:175.178.213.60:3478'},
{'urls': 'stun:192.168.5.224:3478'},
{'urls': 'stun:stun.l.google.com:19302'},
{'urls': 'stun:stun1.l.google.com:19302'},
{'urls': 'stun:stun2.l.google.com:19302'},
];
/// 信令 WebSocket 默认地址。
const String kDefaultSignalServer = 'ws://175.178.213.60:8088/ws/signal';
/// DataChannel 标签,控制端与被控端需一致。
const String kDataChannelLabel = 'control_channel';