vani-meeting-client 2.2.3-beta3 → 2.2.3-beta5
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) {
|
|
@@ -124,7 +128,7 @@ var WebrtcHandler = /** @class */ (function (_super) {
|
|
|
124
128
|
peerConnectionObject.offer = offer;
|
|
125
129
|
// send offer to peer
|
|
126
130
|
console.log("offer", offer);
|
|
127
|
-
messageJson = { to: participant.userId, type: WebrtcMessageType.SendOffer,
|
|
131
|
+
messageJson = { to: participant.userId, type: WebrtcMessageType.SendOffer, data: offer };
|
|
128
132
|
this.sendWebrtcMessage(messageJson);
|
|
129
133
|
_a.label = 2;
|
|
130
134
|
case 2: return [2 /*return*/];
|
|
@@ -144,16 +148,16 @@ var WebrtcHandler = /** @class */ (function (_super) {
|
|
|
144
148
|
throw new Error("Method not implemented.");
|
|
145
149
|
};
|
|
146
150
|
WebrtcHandler.prototype.stopTrack = function (track) {
|
|
147
|
-
throw new Error("Method not implemented.");
|
|
151
|
+
// throw new Error("Method not implemented.");
|
|
148
152
|
};
|
|
149
153
|
WebrtcHandler.prototype.pauseTrack = function (track) {
|
|
150
|
-
throw new Error("Method not implemented.");
|
|
154
|
+
// throw new Error("Method not implemented.");
|
|
151
155
|
};
|
|
152
156
|
WebrtcHandler.prototype.resumeTrack = function (track) {
|
|
153
|
-
throw new Error("Method not implemented.");
|
|
157
|
+
// throw new Error("Method not implemented.");
|
|
154
158
|
};
|
|
155
159
|
WebrtcHandler.prototype.sendTrack = function (track) {
|
|
156
|
-
throw new Error("Method not implemented.");
|
|
160
|
+
// throw new Error("Method not implemented.");
|
|
157
161
|
};
|
|
158
162
|
WebrtcHandler.prototype.createDataChannel = function () {
|
|
159
163
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -163,7 +167,7 @@ var WebrtcHandler = /** @class */ (function (_super) {
|
|
|
163
167
|
});
|
|
164
168
|
};
|
|
165
169
|
WebrtcHandler.prototype.sendMessageViaDataChannel = function (messagePayload) {
|
|
166
|
-
throw new Error('Method not implemented.');
|
|
170
|
+
// throw new Error('Method not implemented.');
|
|
167
171
|
};
|
|
168
172
|
return WebrtcHandler;
|
|
169
173
|
}(BaseVideoCallHandler));
|
|
@@ -614,6 +614,9 @@ var WebsocketHandler = /** @class */ (function (_super) {
|
|
|
614
614
|
if (Object.values(SFUMessageType).includes(type)) {
|
|
615
615
|
return true;
|
|
616
616
|
}
|
|
617
|
+
else if (Object.values(WebrtcMessageType).includes(type)) {
|
|
618
|
+
return true;
|
|
619
|
+
}
|
|
617
620
|
return false;
|
|
618
621
|
};
|
|
619
622
|
return WebsocketHandler;
|