vani-meeting-client-native 0.4.6-beta4 → 0.4.6-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.
@@ -837,13 +837,10 @@ var WebrtcHandler = /** @class */ (function (_super) {
837
837
  transceiver.sender.setParameters(params).catch(console.error);
838
838
  };
839
839
  _this.onNewTrack = function (track, receiver, transceiver, remoteParticipant) { return __awaiter(_this, void 0, void 0, function () {
840
- var kind, t;
841
- var _a;
842
- return __generator(this, function (_b) {
843
- this.printLogIfRequired('ontrack fired', track.kind, track.id);
840
+ var kind;
841
+ return __generator(this, function (_a) {
844
842
  kind = track.kind.toLowerCase() === 'audio' ? TrackKind.Audio : TrackKind.Video;
845
- t = new Track(remoteParticipant, false, kind, track);
846
- (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.addUpdateRemoteTrack(t, remoteParticipant, true);
843
+ this.registerTrack(track, remoteParticipant, kind);
847
844
  return [2 /*return*/];
848
845
  });
849
846
  }); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client-native",
3
- "version": "0.4.6beta4",
3
+ "version": "0.4.6beta5",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",