delay candidates until after session-init/accept
This commit is contained in:
parent
a27f6210df
commit
bb52962f0d
|
@ -1262,7 +1262,6 @@ public class JingleRtpConnection extends AbstractJingleConnection
|
||||||
final RtpContentMap respondingRtpContentMap = RtpContentMap.of(sessionDescription, false);
|
final RtpContentMap respondingRtpContentMap = RtpContentMap.of(sessionDescription, false);
|
||||||
this.responderRtpContentMap = respondingRtpContentMap;
|
this.responderRtpContentMap = respondingRtpContentMap;
|
||||||
storePeerDtlsSetup(respondingRtpContentMap.getDtlsSetup().flip());
|
storePeerDtlsSetup(respondingRtpContentMap.getDtlsSetup().flip());
|
||||||
webRTCWrapper.setIsReadyToReceiveIceCandidates(true);
|
|
||||||
final ListenableFuture<RtpContentMap> outgoingContentMapFuture =
|
final ListenableFuture<RtpContentMap> outgoingContentMapFuture =
|
||||||
prepareOutgoingContentMap(respondingRtpContentMap);
|
prepareOutgoingContentMap(respondingRtpContentMap);
|
||||||
Futures.addCallback(
|
Futures.addCallback(
|
||||||
|
@ -1271,6 +1270,7 @@ public class JingleRtpConnection extends AbstractJingleConnection
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(final RtpContentMap outgoingContentMap) {
|
public void onSuccess(final RtpContentMap outgoingContentMap) {
|
||||||
sendSessionAccept(outgoingContentMap);
|
sendSessionAccept(outgoingContentMap);
|
||||||
|
webRTCWrapper.setIsReadyToReceiveIceCandidates(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1713,8 +1713,6 @@ public class JingleRtpConnection extends AbstractJingleConnection
|
||||||
SessionDescription.parse(webRTCSessionDescription.description);
|
SessionDescription.parse(webRTCSessionDescription.description);
|
||||||
final RtpContentMap rtpContentMap = RtpContentMap.of(sessionDescription, true);
|
final RtpContentMap rtpContentMap = RtpContentMap.of(sessionDescription, true);
|
||||||
this.initiatorRtpContentMap = rtpContentMap;
|
this.initiatorRtpContentMap = rtpContentMap;
|
||||||
//TODO delay ready to receive ice until after session-init
|
|
||||||
this.webRTCWrapper.setIsReadyToReceiveIceCandidates(true);
|
|
||||||
final ListenableFuture<RtpContentMap> outgoingContentMapFuture =
|
final ListenableFuture<RtpContentMap> outgoingContentMapFuture =
|
||||||
encryptSessionInitiate(rtpContentMap);
|
encryptSessionInitiate(rtpContentMap);
|
||||||
Futures.addCallback(
|
Futures.addCallback(
|
||||||
|
@ -1723,6 +1721,7 @@ public class JingleRtpConnection extends AbstractJingleConnection
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(final RtpContentMap outgoingContentMap) {
|
public void onSuccess(final RtpContentMap outgoingContentMap) {
|
||||||
sendSessionInitiate(outgoingContentMap, targetState);
|
sendSessionInitiate(outgoingContentMap, targetState);
|
||||||
|
webRTCWrapper.setIsReadyToReceiveIceCandidates(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue