traceablepeerconnection
Advanced tools
Comparing version 1.1.6 to 1.2.0
26
index.js
@@ -126,3 +126,5 @@ // based on https://github.com/ESTOS/strophe.jingle/ | ||
this.trace('setLocalDescription', dumpSDP(description)); | ||
this.peerconnection.setLocalDescription(description, | ||
return this.peerconnection.setLocalDescription( | ||
description | ||
).then( | ||
function () { | ||
@@ -142,3 +144,5 @@ self.trace('setLocalDescriptionOnSuccess'); | ||
this.trace('setRemoteDescription', dumpSDP(description)); | ||
this.peerconnection.setRemoteDescription(description, | ||
return this.peerconnection.setRemoteDescription( | ||
description | ||
).then( | ||
function () { | ||
@@ -165,3 +169,5 @@ self.trace('setRemoteDescriptionOnSuccess'); | ||
this.trace('createOffer', constraints); | ||
this.peerconnection.createOffer( | ||
return this.peerconnection.createOffer( | ||
constraints | ||
).then( | ||
function (offer) { | ||
@@ -174,4 +180,3 @@ self.trace('createOfferOnSuccess', dumpSDP(offer)); | ||
if (failureCallback) failureCallback(err); | ||
}, | ||
constraints | ||
} | ||
); | ||
@@ -183,3 +188,5 @@ }; | ||
this.trace('createAnswer', constraints); | ||
this.peerconnection.createAnswer( | ||
return this.peerconnection.createAnswer( | ||
constraints | ||
).then( | ||
function (answer) { | ||
@@ -192,4 +199,3 @@ self.trace('createAnswerOnSuccess', dumpSDP(answer)); | ||
if (failureCallback) failureCallback(err); | ||
}, | ||
constraints | ||
} | ||
); | ||
@@ -201,3 +207,5 @@ }; | ||
this.trace('addIceCandidate', candidate); | ||
this.peerconnection.addIceCandidate(candidate, | ||
return this.peerconnection.addIceCandidate( | ||
candidate | ||
).then( | ||
function () { | ||
@@ -204,0 +212,0 @@ //self.trace('addIceCandidateOnSuccess'); |
{ | ||
"name": "traceablepeerconnection", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"description": "Lowlevel RTCPeerConnection wrapper which allows tracing the API calls", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
108433
2957