easyproctor-hml 2.7.3 → 2.7.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 +11 -2
- package/index.js +11 -2
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +53 -56
- package/unpkg/easyproctor.min.js.map +7 -0
package/esm/index.js
CHANGED
|
@@ -14629,6 +14629,7 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
14629
14629
|
const settingsAudio = this.cameraStream.getAudioTracks()[0].getSettings();
|
|
14630
14630
|
if (this.options.proctoringType == "VIDEO" || this.options.proctoringType == "REALTIME" || this.options.proctoringType == "IMAGE" && ((_a2 = this.paramsConfig.imageBehaviourParameters) == null ? void 0 : _a2.saveVideo)) {
|
|
14631
14631
|
let videoFile;
|
|
14632
|
+
trackers.registerError(this.proctoringId, `saveOnSession iniciando`);
|
|
14632
14633
|
if (this.isChunkEnabled) {
|
|
14633
14634
|
const isStable = await this.checkInternetStability();
|
|
14634
14635
|
if (isStable) {
|
|
@@ -14637,8 +14638,8 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
14637
14638
|
const fileName = `EP_${this.proctoringId}_camera_0.webm`;
|
|
14638
14639
|
const objectName = `${this.proctoringId}/${fileName}`;
|
|
14639
14640
|
const isUploaded = await this.backend.checkUpload(this.backendToken, objectName, "video/webm");
|
|
14641
|
+
trackers.registerError(this.proctoringId, `Limpa o armazenamento local pois o v\xEDdeo j\xE1 est\xE1 no servidor`);
|
|
14640
14642
|
if (isUploaded) {
|
|
14641
|
-
trackers.registerError(this.proctoringId, `Limpa o armazenamento local pois o v\xEDdeo j\xE1 est\xE1 no servidor`);
|
|
14642
14643
|
try {
|
|
14643
14644
|
this.chunkStorage && await this.chunkStorage.clearAllChunks(session.id);
|
|
14644
14645
|
} catch (e3) {
|
|
@@ -14649,6 +14650,7 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
14649
14650
|
}
|
|
14650
14651
|
}
|
|
14651
14652
|
}
|
|
14653
|
+
trackers.registerError(this.proctoringId, `saveOnSession gerando v\xEDdeo a partir do buffer em mem\xF3ria (\xEDntegra)`);
|
|
14652
14654
|
const rawBlob = new Blob(this.blobs, {
|
|
14653
14655
|
type: ((_b = this.recorderOptions) == null ? void 0 : _b.mimeType) || "video/webm"
|
|
14654
14656
|
});
|
|
@@ -14669,6 +14671,7 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
14669
14671
|
origin: "Camera" /* Camera */
|
|
14670
14672
|
});
|
|
14671
14673
|
}
|
|
14674
|
+
trackers.registerError(this.proctoringId, `saveOnSession finalizado`);
|
|
14672
14675
|
}
|
|
14673
14676
|
async getFile(file, name, type) {
|
|
14674
14677
|
return new Promise((resolve, reject) => {
|
|
@@ -23798,11 +23801,14 @@ Error: ${error}`
|
|
|
23798
23801
|
await this.recorder.stopAll();
|
|
23799
23802
|
this.spyCam && this.spyCam.stopCheckSpyCam();
|
|
23800
23803
|
this.appChecker && await this.appChecker.disconnectWebSocket();
|
|
23804
|
+
trackers.registerError(this.proctoringId, `finish saveAllOnSession`);
|
|
23801
23805
|
await this.recorder.saveAllOnSession();
|
|
23806
|
+
trackers.registerError(this.proctoringId, `finish sendPendingRealtimeAlerts`);
|
|
23802
23807
|
await this.sendPendingRealtimeAlerts();
|
|
23803
|
-
|
|
23808
|
+
trackers.registerError(this.proctoringId, `finish this.repository.save`);
|
|
23804
23809
|
let uploader;
|
|
23805
23810
|
let uploaderServices;
|
|
23811
|
+
trackers.registerError(this.proctoringId, `finish uploader`);
|
|
23806
23812
|
if (versionVerify() !== "1.0.0.0") {
|
|
23807
23813
|
uploader = new ProctoringUploader(
|
|
23808
23814
|
this.proctoringSession,
|
|
@@ -23876,6 +23882,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
23876
23882
|
this.serviceType
|
|
23877
23883
|
);
|
|
23878
23884
|
}
|
|
23885
|
+
trackers.registerError(this.proctoringId, `finish uploader success`);
|
|
23879
23886
|
if (this.proctoringSession.alerts.length > 0) {
|
|
23880
23887
|
await this.backend.saveAlerts(this.context, this.proctoringSession).catch((err) => {
|
|
23881
23888
|
trackers.registerFinish(
|
|
@@ -23885,6 +23892,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
23885
23892
|
);
|
|
23886
23893
|
});
|
|
23887
23894
|
}
|
|
23895
|
+
trackers.registerError(this.proctoringId, `finish saveAlerts ok`);
|
|
23888
23896
|
await this.backend.finishAndSendUrls(this.context).then((finishResponse) => {
|
|
23889
23897
|
var _a2, _b, _c2, _d;
|
|
23890
23898
|
trackers.registerFinish(this.proctoringSession.id, true, "");
|
|
@@ -23896,6 +23904,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
23896
23904
|
"finish error: " + error
|
|
23897
23905
|
);
|
|
23898
23906
|
});
|
|
23907
|
+
trackers.registerError(this.proctoringId, `finish call`);
|
|
23899
23908
|
if (this.appChecker) {
|
|
23900
23909
|
const externalSessionId = this.appChecker.getExternalCameraSessionId();
|
|
23901
23910
|
if (externalSessionId != "null") {
|
package/index.js
CHANGED
|
@@ -32726,6 +32726,7 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
32726
32726
|
const settingsAudio = this.cameraStream.getAudioTracks()[0].getSettings();
|
|
32727
32727
|
if (this.options.proctoringType == "VIDEO" || this.options.proctoringType == "REALTIME" || this.options.proctoringType == "IMAGE" && ((_a2 = this.paramsConfig.imageBehaviourParameters) == null ? void 0 : _a2.saveVideo)) {
|
|
32728
32728
|
let videoFile;
|
|
32729
|
+
trackers.registerError(this.proctoringId, `saveOnSession iniciando`);
|
|
32729
32730
|
if (this.isChunkEnabled) {
|
|
32730
32731
|
const isStable = await this.checkInternetStability();
|
|
32731
32732
|
if (isStable) {
|
|
@@ -32734,8 +32735,8 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
32734
32735
|
const fileName = `EP_${this.proctoringId}_camera_0.webm`;
|
|
32735
32736
|
const objectName = `${this.proctoringId}/${fileName}`;
|
|
32736
32737
|
const isUploaded = await this.backend.checkUpload(this.backendToken, objectName, "video/webm");
|
|
32738
|
+
trackers.registerError(this.proctoringId, `Limpa o armazenamento local pois o v\xEDdeo j\xE1 est\xE1 no servidor`);
|
|
32737
32739
|
if (isUploaded) {
|
|
32738
|
-
trackers.registerError(this.proctoringId, `Limpa o armazenamento local pois o v\xEDdeo j\xE1 est\xE1 no servidor`);
|
|
32739
32740
|
try {
|
|
32740
32741
|
this.chunkStorage && await this.chunkStorage.clearAllChunks(session.id);
|
|
32741
32742
|
} catch (e3) {
|
|
@@ -32746,6 +32747,7 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
32746
32747
|
}
|
|
32747
32748
|
}
|
|
32748
32749
|
}
|
|
32750
|
+
trackers.registerError(this.proctoringId, `saveOnSession gerando v\xEDdeo a partir do buffer em mem\xF3ria (\xEDntegra)`);
|
|
32749
32751
|
const rawBlob = new Blob(this.blobs, {
|
|
32750
32752
|
type: ((_b = this.recorderOptions) == null ? void 0 : _b.mimeType) || "video/webm"
|
|
32751
32753
|
});
|
|
@@ -32766,6 +32768,7 @@ Setting: ${JSON.stringify(settings, null, 2)}`
|
|
|
32766
32768
|
origin: "Camera" /* Camera */
|
|
32767
32769
|
});
|
|
32768
32770
|
}
|
|
32771
|
+
trackers.registerError(this.proctoringId, `saveOnSession finalizado`);
|
|
32769
32772
|
}
|
|
32770
32773
|
async getFile(file, name, type) {
|
|
32771
32774
|
return new Promise((resolve, reject) => {
|
|
@@ -39047,11 +39050,14 @@ Error: ${error}`
|
|
|
39047
39050
|
await this.recorder.stopAll();
|
|
39048
39051
|
this.spyCam && this.spyCam.stopCheckSpyCam();
|
|
39049
39052
|
this.appChecker && await this.appChecker.disconnectWebSocket();
|
|
39053
|
+
trackers.registerError(this.proctoringId, `finish saveAllOnSession`);
|
|
39050
39054
|
await this.recorder.saveAllOnSession();
|
|
39055
|
+
trackers.registerError(this.proctoringId, `finish sendPendingRealtimeAlerts`);
|
|
39051
39056
|
await this.sendPendingRealtimeAlerts();
|
|
39052
|
-
|
|
39057
|
+
trackers.registerError(this.proctoringId, `finish this.repository.save`);
|
|
39053
39058
|
let uploader;
|
|
39054
39059
|
let uploaderServices;
|
|
39060
|
+
trackers.registerError(this.proctoringId, `finish uploader`);
|
|
39055
39061
|
if (versionVerify() !== "1.0.0.0") {
|
|
39056
39062
|
uploader = new ProctoringUploader(
|
|
39057
39063
|
this.proctoringSession,
|
|
@@ -39125,6 +39131,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
39125
39131
|
this.serviceType
|
|
39126
39132
|
);
|
|
39127
39133
|
}
|
|
39134
|
+
trackers.registerError(this.proctoringId, `finish uploader success`);
|
|
39128
39135
|
if (this.proctoringSession.alerts.length > 0) {
|
|
39129
39136
|
await this.backend.saveAlerts(this.context, this.proctoringSession).catch((err) => {
|
|
39130
39137
|
trackers.registerFinish(
|
|
@@ -39134,6 +39141,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
39134
39141
|
);
|
|
39135
39142
|
});
|
|
39136
39143
|
}
|
|
39144
|
+
trackers.registerError(this.proctoringId, `finish saveAlerts ok`);
|
|
39137
39145
|
await this.backend.finishAndSendUrls(this.context).then((finishResponse) => {
|
|
39138
39146
|
var _a2, _b, _c2, _d;
|
|
39139
39147
|
trackers.registerFinish(this.proctoringSession.id, true, "");
|
|
@@ -39145,6 +39153,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
39145
39153
|
"finish error: " + error
|
|
39146
39154
|
);
|
|
39147
39155
|
});
|
|
39156
|
+
trackers.registerError(this.proctoringId, `finish call`);
|
|
39148
39157
|
if (this.appChecker) {
|
|
39149
39158
|
const externalSessionId = this.appChecker.getExternalCameraSessionId();
|
|
39150
39159
|
if (externalSessionId != "null") {
|