vani-meeting-client 0.0.2 → 0.0.6

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.
@@ -41,6 +41,7 @@ import { WebSocketBasicEvents, WebsocketHandler } from "./websocket-handler/Webs
41
41
  import { CommunicationHandler } from "./inter-communication-handler/CommunicationHandler";
42
42
  import { UserMediaHandler } from "./user-media-handler/UserMediaHandler";
43
43
  import Analytics from 'analytics';
44
+ import googleAnalytics from '@analytics/google-analytics';
44
45
  var MeetingHandler = /** @class */ (function () {
45
46
  function MeetingHandler() {
46
47
  this.communicationHandler = new CommunicationHandler(this);
@@ -422,10 +423,11 @@ var MeetingHandler = /** @class */ (function () {
422
423
  ]
423
424
  });
424
425
  analytics.page();
425
- analytics.track('playedVideo', {
426
+ analytics.track('event', {
426
427
  category: 'AppId',
427
428
  label: this.meetingStartRequest.appId,
428
- value: this.meetingStartRequest.roomId
429
+ action: this.meetingStartRequest.roomId,
430
+ value: 0
429
431
  });
430
432
  }
431
433
  return [2 /*return*/];
@@ -435,6 +437,3 @@ var MeetingHandler = /** @class */ (function () {
435
437
  return MeetingHandler;
436
438
  }());
437
439
  export { MeetingHandler };
438
- function googleAnalytics(arg0) {
439
- throw new Error("Function not implemented.");
440
- }
@@ -170,6 +170,7 @@ var SFUHandler = /** @class */ (function (_super) {
170
170
  if (!(track && track.track)) return [3 /*break*/, 3];
171
171
  producer = this.producers.find(function (producer) { return producer.appData.trackId === track.trackId; });
172
172
  if (!producer) return [3 /*break*/, 1];
173
+ producer.replaceTrack({ track: track.track });
173
174
  this.resumeTrack(track);
174
175
  return [3 /*break*/, 3];
175
176
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.0.2",
3
+ "version": "0.0.6",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -42,6 +42,7 @@
42
42
  "typescript": "^4.5.2"
43
43
  },
44
44
  "dependencies": {
45
+ "@analytics/google-analytics": "^0.5.3",
45
46
  "analytics": "^0.7.21",
46
47
  "axios": "^0.24.0",
47
48
  "loglevel": "^1.8.0",