Make sure LocalSSRCReplacement is cleared when a new peer connection is created
This commit is contained in:
parent
ec3f37f956
commit
64f2f70324
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue