Set local SSRC when available

cusax-fix
Emil Ivov 16 years ago
parent 0374394db2
commit 17f479e6fd

Binary file not shown.

@ -573,8 +573,15 @@ private RTPManager getRTPManager()
bc.setMinimumThreshold(100);
}
//Emil: if you replace this method with another init method make
//sure you check that the line below still works.
rtpManager.initialize(rtpConnector);
//JMF inits the local SSRC upon initialize(RTPConnector) so now's
//the time to ask:
setLocalSourceID(Long.toHexString(
(((RTPSessionMgr)rtpManager).getLocalSSRC())));
createSendStreams();
}
return rtpManager;
@ -1323,6 +1330,7 @@ private void setLocalSourceID(String ssrc)
String oldValue = this.localSourceID;
this.localSourceID = ssrc;
System.out.println("old local ssrc = " + oldValue + " newLocalSSRC= " + localSourceID );
firePropertyChange(PNAME_LOCAL_SSRC, oldValue, ssrc);
}
@ -1338,6 +1346,7 @@ private void setRemoteSourceID(String ssrc)
String oldValue = this.remoteSourceID;
this.remoteSourceID = ssrc;
System.out.println("old remote ssrc = " + oldValue + " newRemoteSSRC= " + remoteSourceID );
firePropertyChange(PNAME_REMOTE_SSRC, oldValue, ssrc);
}
}

Loading…
Cancel
Save