vani-meeting-client 0.2.3 → 0.2.4

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.
@@ -47,6 +47,10 @@ export declare class CommunicationHandler {
47
47
  onVideoCallWebSocketMessage(websocketMessage: WebSocketMessageBody): Promise<void>;
48
48
  onReconnect(): Promise<void>;
49
49
  onStartMeeingCalled(): void;
50
+ onAudioBlocked(data: any): void;
51
+ onAudioUnblocked(data: any): void;
52
+ onVideoBlocked(data: any): void;
53
+ onVideoUnblocked(data: any): void;
50
54
  onIceCandidateDisconnected(): void;
51
55
  private checkIfInternetReachable;
52
56
  private onApiResponded;
@@ -304,6 +304,18 @@ var CommunicationHandler = /** @class */ (function () {
304
304
  }
305
305
  (_d = this.videoCallHandler) === null || _d === void 0 ? void 0 : _d.init();
306
306
  };
307
+ CommunicationHandler.prototype.onAudioBlocked = function (data) {
308
+ log.info(data);
309
+ };
310
+ CommunicationHandler.prototype.onAudioUnblocked = function (data) {
311
+ log.info(data);
312
+ };
313
+ CommunicationHandler.prototype.onVideoBlocked = function (data) {
314
+ log.info(data);
315
+ };
316
+ CommunicationHandler.prototype.onVideoUnblocked = function (data) {
317
+ log.info(data);
318
+ };
307
319
  //Connection Recheck
308
320
  CommunicationHandler.prototype.onIceCandidateDisconnected = function () {
309
321
  if (this.internetReachbilityTimeout) {
@@ -348,7 +348,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
348
348
  }, 200);
349
349
  };
350
350
  WebsocketHandler.prototype.onMessage = function (message) {
351
- var _a, _b, _c, _d, _e, _f, _g, _h;
351
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
352
352
  this.lastPingTimeStamp = new Date().getTime();
353
353
  var messagejson = JSON.parse(message);
354
354
  if (messagejson.type && messagejson.data) {
@@ -395,6 +395,18 @@ var WebsocketHandler = /** @class */ (function (_super) {
395
395
  else if (type === WebSocketBasicEvents.OnAudioVideoStatusUpdated) {
396
396
  (_h = this.communicationHandler) === null || _h === void 0 ? void 0 : _h.onAudioVideoStatusUpdated(data);
397
397
  }
398
+ else if (type === WebSocketBasicEvents.OnAudioBlockRequest) {
399
+ (_j = this.communicationHandler) === null || _j === void 0 ? void 0 : _j.onAudioBlocked(data);
400
+ }
401
+ else if (type === WebSocketBasicEvents.OnAudioUnblockRequest) {
402
+ (_k = this.communicationHandler) === null || _k === void 0 ? void 0 : _k.onAudioUnblocked(data);
403
+ }
404
+ else if (type === WebSocketBasicEvents.OnVideoBlockRequest) {
405
+ (_l = this.communicationHandler) === null || _l === void 0 ? void 0 : _l.onVideoBlocked(data);
406
+ }
407
+ else if (type === WebSocketBasicEvents.OnVideoUnblockRequest) {
408
+ (_m = this.communicationHandler) === null || _m === void 0 ? void 0 : _m.onVideoUnblocked(data);
409
+ }
398
410
  }
399
411
  };
400
412
  WebsocketHandler.prototype.onSetupDone = function (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",