Skip to content

Commit 118fb05

Browse files
committed
Remove ice candidate normalisation
1 parent 984a12f commit 118fb05

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,13 @@ exports.couple = require('./couple');
7373
**/
7474
exports.createConnection = function(opts, constraints) {
7575
var plugin = findPlugin((opts || {}).plugins);
76-
var normalize = (plugin ? plugin.normalizeIce : null) || require('normalice');
7776

7877
// generate the config based on options provided
7978
var config = gen.config(opts);
8079

8180
// generate appropriate connection constraints
8281
var constraints = gen.connectionConstraints(opts, constraints);
8382

84-
// ensure we have valid iceServers
85-
config.iceServers = (config.iceServers || []).map(normalize);
86-
8783
if (plugin && typeof plugin.createConnection == 'function') {
8884
return plugin.createConnection(config, constraints);
8985
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"async": "~0.9",
88
"cog": "^1.0.0",
99
"eventemitter3": "^0.1.2",
10-
"normalice": "^1.0.0",
1110
"rtc-core": "^3.0.0"
1211
},
1312
"devDependencies": {
@@ -45,4 +44,4 @@
4544
"files": "test/all.js",
4645
"server": "test/server.js"
4746
}
48-
}
47+
}

0 commit comments

Comments
 (0)