mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: add IceCandidates only after webEndpoint is available
parent
bd262257f0
commit
a922b95d95
|
@ -214,10 +214,10 @@ public abstract class MediaEndpoint {
|
|||
internalEndpointInitialization(endpointLatch);
|
||||
} else {
|
||||
endpointLatch.countDown();
|
||||
}
|
||||
if (this.isWeb()) {
|
||||
while (!candidates.isEmpty()) {
|
||||
internalAddIceCandidate(candidates.removeFirst());
|
||||
if (this.isWeb()) {
|
||||
while (!candidates.isEmpty()) {
|
||||
internalAddIceCandidate(candidates.removeFirst());
|
||||
}
|
||||
}
|
||||
}
|
||||
return old;
|
||||
|
@ -291,6 +291,11 @@ public abstract class MediaEndpoint {
|
|||
}
|
||||
|
||||
endpointLatch.countDown();
|
||||
|
||||
while (!candidates.isEmpty()) {
|
||||
internalAddIceCandidate(candidates.removeFirst());
|
||||
}
|
||||
|
||||
log.trace("EP {}: Created a new WebRtcEndpoint", endpointName);
|
||||
endpointSubscription = registerElemErrListener(webEndpoint);
|
||||
|
||||
|
|
Loading…
Reference in New Issue