build: 控制端功能移植到flutter版本
This commit is contained in:
26
webrtc_controller_flutter/lib/config/ice_servers.dart
Normal file
26
webrtc_controller_flutter/lib/config/ice_servers.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
/// 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://192.168.100.222:8080/ws/signal';
|
||||
|
||||
/// DataChannel 标签,控制端与被控端需一致。
|
||||
const String kDataChannelLabel = 'control_channel';
|
||||
Reference in New Issue
Block a user