rtcpeerconnection
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "rtcpeerconnection", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A tiny browser module that normalizes and simplifies the API for WebRTC peer connections.", | ||
@@ -5,0 +5,0 @@ "main": "rtcpeerconnection.js", |
@@ -83,4 +83,2 @@ var _ = require('underscore'); | ||
this._role = this.isInitiator ? 'initiator' : 'responder'; | ||
if (this.config.debug) { | ||
@@ -123,2 +121,6 @@ this.on('*', function (eventName, event) { | ||
PeerConnection.prototype._role = function () { | ||
return this.isInitiator ? 'initiator' : 'responder'; | ||
}; | ||
// Add a stream to the peer connection object | ||
@@ -235,3 +237,3 @@ PeerConnection.prototype.addStream = function (stream) { | ||
jingle = SJJ.toSessionJSON(offer.sdp, { | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'outgoing' | ||
@@ -321,3 +323,3 @@ }); | ||
sid: self.config.sdpSessionID, | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'incoming' | ||
@@ -384,3 +386,3 @@ }); | ||
sid: self.config.sdpSessionID, | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'incoming' | ||
@@ -429,3 +431,3 @@ }); | ||
answer.jingle = SJJ.toSessionJSON(answer.sdp, { | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'outgoing' | ||
@@ -465,3 +467,3 @@ }); | ||
sid: self.config.sdpSessionID, | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'outgoing' | ||
@@ -480,3 +482,3 @@ }); | ||
var jingle = SJJ.toSessionJSON(answer.sdp, { | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'outgoing' | ||
@@ -494,3 +496,3 @@ }); | ||
expandedAnswer.jingle = SJJ.toSessionJSON(answer.sdp, { | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'outgoing' | ||
@@ -512,3 +514,3 @@ }); | ||
sid: self.sdpSessionID, | ||
role: self._role, | ||
role: self._role(), | ||
direction: 'outgoing' | ||
@@ -556,4 +558,4 @@ }); | ||
var jingle = SJJ.toSessionJSON(self.pc.localDescription.sdp, { | ||
role: self._role, | ||
direction: 'incoming' | ||
role: self._role(), | ||
direction: 'outgoing' | ||
}); | ||
@@ -573,3 +575,3 @@ _.each(jingle.contents, function (content) { | ||
name: ice.sdpMid, | ||
creator: self._role, | ||
creator: self._role(), | ||
transport: { | ||
@@ -576,0 +578,0 @@ transType: 'iceUdp', |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164062
4366
10