vani-meeting-client 0.5.0 → 0.5.1

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.
@@ -177,8 +177,8 @@ var CommunicationHandler = /** @class */ (function () {
177
177
  }
178
178
  };
179
179
  CommunicationHandler.prototype.updateParticipantAudioVideoDataAccordingToTrack = function (participant) {
180
- participant.isAudioEnable = this.getAllTracks().find(function (track) { return track.trackKind === TrackKind.Audio; }) ? true : false;
181
- participant.isVideoEnable = this.getAllTracks().find(function (track) { return track.trackKind === TrackKind.Video; }) ? true : false;
180
+ participant.isAudioEnable = this.getAllTracks().find(function (track) { return (track.trackKind === TrackKind.Audio && track.participant.userId === participant.userId); }) ? true : false;
181
+ participant.isVideoEnable = this.getAllTracks().find(function (track) { return (track.trackKind === TrackKind.Video && track.participant.userId === participant.userId); }) ? true : false;
182
182
  };
183
183
  CommunicationHandler.prototype.getSelfTrackByType = function (trackKind) {
184
184
  return this.selfTracks.find(function (track) { return track.trackKind === trackKind; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",