vani-meeting-client 0.2.1 → 0.2.2

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.
@@ -20,6 +20,7 @@ export declare class SFUHandler extends BaseVideoCallHandler {
20
20
  sendTrack(track: Track): Promise<void>;
21
21
  onParticipantUpdated(): void;
22
22
  init(): Promise<void>;
23
+ private onTransportNotFound;
23
24
  private addObserverForDevice;
24
25
  private onRouterRtpCapabilities;
25
26
  private onTransportConnectDone;
@@ -228,6 +228,16 @@ var SFUHandler = /** @class */ (function (_super) {
228
228
  });
229
229
  });
230
230
  };
231
+ SFUHandler.prototype.onTransportNotFound = function (data) {
232
+ return __awaiter(this, void 0, void 0, function () {
233
+ var messageJson;
234
+ return __generator(this, function (_a) {
235
+ messageJson = { to: "self", type: SFUMessageType.OnCreateTransports, message: SFUMessageType.OnCreateTransports };
236
+ this.sendSFUMessageToSocket(messageJson);
237
+ return [2 /*return*/];
238
+ });
239
+ });
240
+ };
231
241
  SFUHandler.prototype.addObserverForDevice = function () {
232
242
  return __awaiter(this, void 0, void 0, function () {
233
243
  var _this = this;
@@ -368,6 +378,9 @@ var SFUHandler = /** @class */ (function (_super) {
368
378
  else if (websocketCallHandler.type === SFUMessageType.OnTrackEnded) {
369
379
  this.onTrackEnded(websocketCallHandler.data);
370
380
  }
381
+ else if (websocketCallHandler.type === SFUMessageType.OnTransportNotFound) {
382
+ this.onTransportNotFound(websocketCallHandler.data);
383
+ }
371
384
  };
372
385
  SFUHandler.prototype.onTrackEnded = function (data) {
373
386
  var _a, _b;
@@ -49,7 +49,8 @@ export declare enum SFUMessageType {
49
49
  OnSpeakerChanged = "onSpeakerChanged",
50
50
  OnRestartIceCandidate = "restartIceCandidate",
51
51
  OnTrackEnded = "onTrackEnded",
52
- UpdateSpatialConsumer = "updateSpatialConsumer"
52
+ UpdateSpatialConsumer = "updateSpatialConsumer",
53
+ OnTransportNotFound = "onTransportNotFound"
53
54
  }
54
55
  export declare type WebSocketEvents = SFUMessageType | WebSocketBasicEvents;
55
56
  export interface WebSocketMessageBody {
@@ -106,6 +106,7 @@ export var SFUMessageType;
106
106
  SFUMessageType["OnRestartIceCandidate"] = "restartIceCandidate";
107
107
  SFUMessageType["OnTrackEnded"] = "onTrackEnded";
108
108
  SFUMessageType["UpdateSpatialConsumer"] = "updateSpatialConsumer";
109
+ SFUMessageType["OnTransportNotFound"] = "onTransportNotFound";
109
110
  })(SFUMessageType || (SFUMessageType = {}));
110
111
  var ConnectionType;
111
112
  (function (ConnectionType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",