rtcpeerconnection
Advanced tools
Comparing version 3.0.9 to 3.0.10
{ | ||
"name": "rtcpeerconnection", | ||
"version": "3.0.9", | ||
"version": "3.0.10", | ||
"description": "A tiny browser module that normalizes and simplifies the API for WebRTC peer connections.", | ||
@@ -5,0 +5,0 @@ "main": "rtcpeerconnection.js", |
@@ -293,5 +293,9 @@ var _ = require('underscore'); | ||
// this hack... | ||
var expandedOffer = { | ||
type: 'offer', | ||
sdp: offer.sdp | ||
}; | ||
if (self.assumeSetLocalSuccess) { | ||
self.emit('offer', offer); | ||
cb(null, offer); | ||
self.emit('offer', expandedOffer); | ||
cb(null, expandedOffer); | ||
} | ||
@@ -301,6 +305,2 @@ self.pc.setLocalDescription(offer, | ||
var jingle; | ||
var expandedOffer = { | ||
type: 'offer', | ||
sdp: offer.sdp | ||
}; | ||
if (self.config.useJingle) { | ||
@@ -575,13 +575,13 @@ jingle = SJJ.toSessionJSON(offer.sdp, { | ||
} | ||
var expandedAnswer = { | ||
type: 'answer', | ||
sdp: answer.sdp | ||
}; | ||
if (self.assumeSetLocalSuccess) { | ||
// not safe to do when doing simulcast mangling | ||
self.emit('answer', answer); | ||
cb(null, answer); | ||
self.emit('answer', expandedAnswer); | ||
cb(null, expandedAnswer); | ||
} | ||
self.pc.setLocalDescription(answer, | ||
function () { | ||
var expandedAnswer = { | ||
type: 'answer', | ||
sdp: answer.sdp | ||
}; | ||
if (self.config.useJingle) { | ||
@@ -588,0 +588,0 @@ var jingle = SJJ.toSessionJSON(answer.sdp, { |
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
190215