vani-meeting-client 0.3.4 → 0.3.5
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.
|
@@ -13,6 +13,7 @@ export declare abstract class BaseVideoCallHandler extends Base {
|
|
|
13
13
|
abstract resumeIncomingTrack(track: Track): void;
|
|
14
14
|
abstract pauseIncomingTrack(track: Track): void;
|
|
15
15
|
abstract onParticipantUpdated(): void;
|
|
16
|
+
abstract createDataChannel(): any;
|
|
16
17
|
updateSpatialForTrack(track: Track, spatialLayerIndex: number): Promise<void>;
|
|
17
18
|
reconnectedWithoutPing(): void;
|
|
18
19
|
cleanup(): void;
|
|
@@ -312,6 +312,16 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
312
312
|
var messageJson = { to: "self", type: SFUMessageType.OnTransportProduceSyncRequest, message: { type: producerLocalParameters.appData.type, transportId: (_a = _this.sendTransport) === null || _a === void 0 ? void 0 : _a.id, kind: producerLocalParameters.kind, rtpParameters: producerLocalParameters.rtpParameters, appData: producerLocalParameters.appData } };
|
|
313
313
|
_this.sendSFUMessageToSocket(messageJson);
|
|
314
314
|
});
|
|
315
|
+
transport.on("producedata", function (producerLocalParameters, callback, errback) { return __awaiter(_this, void 0, void 0, function () {
|
|
316
|
+
var messageJson;
|
|
317
|
+
var _a;
|
|
318
|
+
return __generator(this, function (_b) {
|
|
319
|
+
this.transportCallBacks[this.sendTransport.id] = callback;
|
|
320
|
+
messageJson = { to: "self", type: SFUMessageType.OnTransportProduceSyncRequest, message: { type: producerLocalParameters.appData.type, transportId: (_a = this.sendTransport) === null || _a === void 0 ? void 0 : _a.id, kind: producerLocalParameters.kind, rtpParameters: producerLocalParameters.rtpParameters, appData: producerLocalParameters.appData } };
|
|
321
|
+
this.sendSFUMessageToSocket(messageJson);
|
|
322
|
+
return [2 /*return*/];
|
|
323
|
+
});
|
|
324
|
+
}); });
|
|
315
325
|
this.sendTransport.on('connectionstatechange', function (newState) {
|
|
316
326
|
var _a;
|
|
317
327
|
if (newState === "disconnected" || newState === "failed") {
|