Comparing version 0.7.6 to 0.7.7
{ | ||
"name": "sip.js", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "James Criscuolo <james@onsip.com>", |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple, intuitive, and powerful JavaScript signaling library", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "browser": { |
@@ -1178,2 +1178,3 @@ "use strict"; | ||
"autostart", | ||
"rtcpMuxPolicy", | ||
"stunServers", | ||
@@ -1579,2 +1580,8 @@ "traceSip", | ||
rtcpMuxPolicy: function(rtcpMuxPolicy) { | ||
if (typeof rtcpMuxPolicy === 'string') { | ||
return rtcpMuxPolicy; | ||
} | ||
}, | ||
userAgentString: function(userAgentString) { | ||
@@ -1581,0 +1588,0 @@ if (typeof userAgentString === 'string') { |
@@ -421,4 +421,12 @@ "use strict"; | ||
this.peerConnection = new SIP.WebRTC.RTCPeerConnection({'iceServers': servers}); | ||
var connConfig = { | ||
iceServers: servers | ||
}; | ||
if (config.rtcpMuxPolicy) { | ||
connConfig.rtcpMuxPolicy = config.rtcpMuxPolicy; | ||
} | ||
this.peerConnection = new SIP.WebRTC.RTCPeerConnection(connConfig); | ||
// Firefox (35.0.1) sometimes throws on calls to peerConnection.getRemoteStreams | ||
@@ -425,0 +433,0 @@ // even if peerConnection.onaddstream was just called. In order to make |
412666
10080