vani-meeting-client 1.3.5 → 1.3.7

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.
@@ -216,10 +216,7 @@ var UserMediaHandler = /** @class */ (function (_super) {
216
216
  if (!this.cameraFacingMode) {
217
217
  this.cameraFacingMode = (_c = this.meetingStartRequest) === null || _c === void 0 ? void 0 : _c.defaultCameraFacingMode;
218
218
  }
219
- if (this.cameraFacingMode === CameraFacingMode.Back) {
220
- userMediaPayload.video = {};
221
- }
222
- userMediaPayload.video.facingMode = { ideal: this.cameraFacingMode };
219
+ userMediaPayload.video.facingMode = this.cameraFacingMode;
223
220
  }
224
221
  }
225
222
  if (isAudioRequired) {
@@ -253,7 +253,7 @@ var SFUHandler = /** @class */ (function (_super) {
253
253
  appData.trackKind = track.trackKind;
254
254
  appData.trackId = track.trackId;
255
255
  producerData = { track: track.track, appData: appData, disableTrackOnPause: false, zeroRtpOnPause: true };
256
- if (track.trackKind === TrackKind.Video) {
256
+ if (track.trackKind === TrackKind.Video && this.meetingStartRequest.simulcastEncodings.length > 0) {
257
257
  producerData.encodings = this.meetingStartRequest.simulcastEncodings;
258
258
  }
259
259
  if (track.track.kind === "audio") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",