vani-meeting-client-native 0.4.7-beta3 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -587,11 +587,12 @@ var WebrtcHandler = /** @class */ (function (_super) {
|
|
|
587
587
|
// }
|
|
588
588
|
// })
|
|
589
589
|
rtcConnection.addEventListener('negotiationneeded', function (event) {
|
|
590
|
-
var _a;
|
|
590
|
+
var _a, _b;
|
|
591
591
|
_this.printLogIfRequired("negotiationneeded", rtcConnection.signalingState, remoteParticipant, peerConnectionObject);
|
|
592
592
|
var selfParticpant = (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.getSelfParticipant();
|
|
593
593
|
var innerPeerConnectionObject = selfParticpant === null || selfParticpant === void 0 ? void 0 : selfParticpant.isPeerConnectionsViaUserIdPresent(remoteParticipant.userId);
|
|
594
|
-
|
|
594
|
+
var remoteUser = (_b = _this.communicationHandler) === null || _b === void 0 ? void 0 : _b.participantByUserId(remoteParticipant.userId);
|
|
595
|
+
if (!remoteUser && (!innerPeerConnectionObject || (!innerPeerConnectionObject.offer && !innerPeerConnectionObject.answer))) {
|
|
595
596
|
_this.printLogIfRequired("negotiationneeded ignored", rtcConnection.signalingState, remoteParticipant, innerPeerConnectionObject, __spreadArray([], __read(selfParticpant.getPeerConnections().entries()), false));
|
|
596
597
|
return;
|
|
597
598
|
}
|
|
@@ -634,6 +635,7 @@ var WebrtcHandler = /** @class */ (function (_super) {
|
|
|
634
635
|
selfParticpant = this.communicationHandler.getSelfParticipant();
|
|
635
636
|
peerConnectionObject = selfParticpant.getPeerConnectionsViaUserId(remoteParticipant.userId, this.meetingStartRequest);
|
|
636
637
|
if (peerConnectionObject && shouldRestartIce && peerConnectionObject.rtcPeerConnection && peerConnectionObject.rtcPeerConnection.connectionState === 'connected') {
|
|
638
|
+
this.printLogIfRequired("onNegotiationNeeded return", remoteParticipant, shouldRestartIce, peerConnectionObject);
|
|
637
639
|
return [2 /*return*/];
|
|
638
640
|
}
|
|
639
641
|
// if(shouldIgnoreAllOldOpetionalNego){
|