Make sure LocalSSRCReplacement is cleared when a new peer connection is created

This commit is contained in:
Devin Wilson 2015-11-24 13:32:17 -07:00 committed by Mike Girard
parent ec3f37f956
commit 64f2f70324
2 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,8 @@ JingleSessionPC.prototype.doInitialize = function () {
this.isreconnect = false;
// Set to true if the connection was ever stable
this.wasstable = false;
//Make sure we clear out stored ssrcs from previous peer connections
SSRCReplacement.init();
this.peerconnection = new TraceablePeerConnection(
this.connection.jingle.ice_config,

View File

@ -141,6 +141,15 @@ function generateRecvonlySSRC() {
}
var LocalSSRCReplacement = {
/**
* Initialize the module
*/
init: function() {
localVideoSSRC = null;
localRecvOnlySSRC = null;
localRecvOnlyCName = null;
},
/**
* Method must be called before 'session-initiate' or 'session-invite' is
* sent. Scans the IQ for local video SSRC and stores it if detected.