easyproctor-hml 2.5.3 → 2.5.5

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.
package/esm/index.js CHANGED
@@ -10165,13 +10165,18 @@ var CameraRecorder = class {
10165
10165
  const settings = tracks[0].getSettings();
10166
10166
  let { width = 0, height = 0 } = settings;
10167
10167
  const isPortrait = ((_d = screen.orientation) == null ? void 0 : _d.type.includes("portrait")) || window.innerHeight > window.innerWidth;
10168
- if (isPortrait && width > height) {
10168
+ if (isPortrait) {
10169
10169
  [width, height] = [height, width];
10170
10170
  }
10171
+ console.log("isPortrait -> ", isPortrait);
10171
10172
  console.log("width -> ", width);
10172
10173
  console.log("height -> ", height);
10173
10174
  console.log("minWidth -> ", this.videoOptions.minWidth);
10174
10175
  console.log("minHeight -> ", this.videoOptions.minHeight);
10176
+ console.log("this.videoOptions.width -> ", this.videoOptions.width);
10177
+ console.log("this.videoOptions.height -> ", this.videoOptions.height);
10178
+ console.log("settings.width -> ", settings.width);
10179
+ console.log("settings.height -> ", settings.height);
10175
10180
  if (this.videoOptions.minWidth > width || this.videoOptions.minHeight > height) {
10176
10181
  throw STREAM_UNDER_MINIMUM_PERMITTED;
10177
10182
  } else if (this.videoOptions.width !== width || this.videoOptions.height !== height) {
package/index.js CHANGED
@@ -28262,13 +28262,18 @@ var CameraRecorder = class {
28262
28262
  const settings = tracks[0].getSettings();
28263
28263
  let { width = 0, height = 0 } = settings;
28264
28264
  const isPortrait = ((_d = screen.orientation) == null ? void 0 : _d.type.includes("portrait")) || window.innerHeight > window.innerWidth;
28265
- if (isPortrait && width > height) {
28265
+ if (isPortrait) {
28266
28266
  [width, height] = [height, width];
28267
28267
  }
28268
+ console.log("isPortrait -> ", isPortrait);
28268
28269
  console.log("width -> ", width);
28269
28270
  console.log("height -> ", height);
28270
28271
  console.log("minWidth -> ", this.videoOptions.minWidth);
28271
28272
  console.log("minHeight -> ", this.videoOptions.minHeight);
28273
+ console.log("this.videoOptions.width -> ", this.videoOptions.width);
28274
+ console.log("this.videoOptions.height -> ", this.videoOptions.height);
28275
+ console.log("settings.width -> ", settings.width);
28276
+ console.log("settings.height -> ", settings.height);
28272
28277
  if (this.videoOptions.minWidth > width || this.videoOptions.minHeight > height) {
28273
28278
  throw STREAM_UNDER_MINIMUM_PERMITTED;
28274
28279
  } else if (this.videoOptions.width !== width || this.videoOptions.height !== height) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor-hml",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",