Skip to content

Commit

Permalink
able to change iceServers
Browse files Browse the repository at this point in the history
  • Loading branch information
stwonary authored Jun 15, 2020
1 parent 2ec248f commit e5e3357
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions lib/src/sip_ua_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,7 @@ class SIPUAHelper extends EventManager {

var _defaultOptions = {
'eventHandlers': eventHandlers,
'pcConfig': {
'iceServers': [
{'url': 'stun:stun.l.google.com:19302'},
/*
* turn server configuration example.
{
'url': 'turn:123.45.67.89:3478',
'username': 'change_to_real_user',
'credential': 'change_to_real_secret'
},
*/
]
},
'pcConfig': {'iceServers': _uaSettings.iceServers},
'mediaConstraints': {
"audio": true,
"video": voiceonly
Expand Down Expand Up @@ -468,4 +456,14 @@ class UaSettings {
String authorizationUser;
String password;
String displayName;

List<Map<String, String>> iceServers = [
{'url': 'stun:stun.l.google.com:19302'},
// turn server configuration example.
// {
// 'url': 'turn:123.45.67.89:3478',
// 'username': 'change_to_real_user',
// 'credential': 'change_to_real_secret'
// },
];
}

0 comments on commit e5e3357

Please sign in to comment.