easyproctor-hml 0.0.39 → 0.0.41

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
@@ -25083,7 +25083,6 @@ var DeviceChecker = class {
25083
25083
 
25084
25084
  // src/errors/errors.ts
25085
25085
  var NOT_SHARED_FIRST_SCREEN = "not_shared_first_screen";
25086
- var NOT_SHARED_SCREEN = "not_shared_screen";
25087
25086
  var MULTIPLE_MONITORS_DETECTED = "multiple_monitors_detected";
25088
25087
  var PROCTORING_ALREADY_STARTED = "proctoring_already_started";
25089
25088
  var PROCTORING_NOT_STARTED = "proctoring_not_started";
@@ -25672,13 +25671,6 @@ var ScreenRecorder = class {
25672
25671
  const tracks = this.screenStream.getVideoTracks();
25673
25672
  tracks[0].onended = onStopSharingScreenCallback;
25674
25673
  console.log(tracks);
25675
- const isFirefox = navigator.userAgent.indexOf("Firefox") > -1;
25676
- if (isFirefox) {
25677
- const hasMultipleMonitors = tracks.find((el) => el.label == "");
25678
- if (hasMultipleMonitors && allowOnlyFirstMonitor) {
25679
- throw MULTIPLE_MONITORS_DETECTED;
25680
- }
25681
- }
25682
25674
  const sharedFirstScreen = tracks.find((el) => {
25683
25675
  return ["screen:0:0", "Primary Monitor"].includes(el.label);
25684
25676
  }) != null;
@@ -25694,10 +25686,6 @@ var ScreenRecorder = class {
25694
25686
  });
25695
25687
  throw NOT_SHARED_FIRST_SCREEN;
25696
25688
  } else if (!sharedScreen || sharedNotAllowed) {
25697
- tracks.forEach((el) => {
25698
- el.stop();
25699
- });
25700
- throw NOT_SHARED_SCREEN;
25701
25689
  }
25702
25690
  const { startRecording, stopRecording } = recorder(this.screenStream, this.blobs, this.proctoringId, this.options.onBufferSizeError, onBufferSizeErrorCallback);
25703
25691
  this.recordingStart = startRecording;
package/index.js CHANGED
@@ -36617,7 +36617,6 @@ var DeviceChecker = class {
36617
36617
 
36618
36618
  // src/errors/errors.ts
36619
36619
  var NOT_SHARED_FIRST_SCREEN = "not_shared_first_screen";
36620
- var NOT_SHARED_SCREEN = "not_shared_screen";
36621
36620
  var MULTIPLE_MONITORS_DETECTED = "multiple_monitors_detected";
36622
36621
  var PROCTORING_ALREADY_STARTED = "proctoring_already_started";
36623
36622
  var PROCTORING_NOT_STARTED = "proctoring_not_started";
@@ -37206,13 +37205,6 @@ var ScreenRecorder = class {
37206
37205
  const tracks = this.screenStream.getVideoTracks();
37207
37206
  tracks[0].onended = onStopSharingScreenCallback;
37208
37207
  console.log(tracks);
37209
- const isFirefox = navigator.userAgent.indexOf("Firefox") > -1;
37210
- if (isFirefox) {
37211
- const hasMultipleMonitors = tracks.find((el) => el.label == "");
37212
- if (hasMultipleMonitors && allowOnlyFirstMonitor) {
37213
- throw MULTIPLE_MONITORS_DETECTED;
37214
- }
37215
- }
37216
37208
  const sharedFirstScreen = tracks.find((el) => {
37217
37209
  return ["screen:0:0", "Primary Monitor"].includes(el.label);
37218
37210
  }) != null;
@@ -37228,10 +37220,6 @@ var ScreenRecorder = class {
37228
37220
  });
37229
37221
  throw NOT_SHARED_FIRST_SCREEN;
37230
37222
  } else if (!sharedScreen || sharedNotAllowed) {
37231
- tracks.forEach((el) => {
37232
- el.stop();
37233
- });
37234
- throw NOT_SHARED_SCREEN;
37235
37223
  }
37236
37224
  const { startRecording, stopRecording } = recorder(this.screenStream, this.blobs, this.proctoringId, this.options.onBufferSizeError, onBufferSizeErrorCallback);
37237
37225
  this.recordingStart = startRecording;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor-hml",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",