vani-meeting-client 2.2.3-beta4 → 2.2.3-beta6
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.
|
@@ -83,6 +83,10 @@ var WebrtcHandler = /** @class */ (function (_super) {
|
|
|
83
83
|
// throw new Error("Method not implemented.");
|
|
84
84
|
};
|
|
85
85
|
WebrtcHandler.prototype.onSocketMessage = function (websocketCallHandler) {
|
|
86
|
+
console.log("websocketCallHandler", websocketCallHandler);
|
|
87
|
+
if (websocketCallHandler.type === WebrtcMessageType.SendOffer) {
|
|
88
|
+
console.log("New Offer", websocketCallHandler.data);
|
|
89
|
+
}
|
|
86
90
|
// throw new Error("Method not implemented.");
|
|
87
91
|
};
|
|
88
92
|
WebrtcHandler.prototype.onAllParticipants = function (participants) {
|
|
@@ -104,7 +108,6 @@ var WebrtcHandler = /** @class */ (function (_super) {
|
|
|
104
108
|
case 0:
|
|
105
109
|
selfParticpant = this.communicationHandler.getSelfParticipant();
|
|
106
110
|
console.log(selfParticpant);
|
|
107
|
-
debugger;
|
|
108
111
|
if (!(selfParticpant.userId !== participant.userId && !selfParticpant.getPeerConnections().has(participant.userId))) return [3 /*break*/, 2];
|
|
109
112
|
console.log("onUserJoined ", participant);
|
|
110
113
|
isOfferInitParticipant = this.isOfferInitParticipant(participant);
|
|
@@ -611,9 +611,13 @@ var WebsocketHandler = /** @class */ (function (_super) {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
WebsocketHandler.prototype.isVideoCallControllerMessageType = function (type) {
|
|
614
|
+
console.log("isVideoCallControllerMessageType", type);
|
|
614
615
|
if (Object.values(SFUMessageType).includes(type)) {
|
|
615
616
|
return true;
|
|
616
617
|
}
|
|
618
|
+
else if (Object.values(WebrtcMessageType).includes(type)) {
|
|
619
|
+
return true;
|
|
620
|
+
}
|
|
617
621
|
return false;
|
|
618
622
|
};
|
|
619
623
|
return WebsocketHandler;
|