Fix fetching of ICE servers.
This commit is contained in:
+2
-2
@@ -64,7 +64,7 @@ function ServerConnection() {
|
|||||||
* The ICE configuration used by all associated streams.
|
* The ICE configuration used by all associated streams.
|
||||||
* @type {Array.<Object>}
|
* @type {Array.<Object>}
|
||||||
*/
|
*/
|
||||||
this.iceServers = [];
|
this.iceServers = null;
|
||||||
/**
|
/**
|
||||||
* The permissions granted to this connection.
|
* The permissions granted to this connection.
|
||||||
* @type {Object.<string,boolean>}
|
* @type {Object.<string,boolean>}
|
||||||
@@ -359,7 +359,7 @@ ServerConnection.prototype.newUpStream = function(id) {
|
|||||||
throw new Error('Eek!');
|
throw new Error('Eek!');
|
||||||
}
|
}
|
||||||
let pc = new RTCPeerConnection({
|
let pc = new RTCPeerConnection({
|
||||||
iceServers: sc.iceServers,
|
iceServers: sc.iceServers || [],
|
||||||
});
|
});
|
||||||
if(!pc)
|
if(!pc)
|
||||||
throw new Error("Couldn't create peer connection");
|
throw new Error("Couldn't create peer connection");
|
||||||
|
|||||||
Reference in New Issue
Block a user