easyproctor-hml 2.7.3 → 2.7.4
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 -1
- package/index.js +11 -1
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +29 -29
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,15 @@ 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();
|
|
23808
|
+
trackers.registerError(this.proctoringId, `finish this.repository.save`);
|
|
23803
23809
|
await this.repository.save(this.proctoringSession);
|
|
23804
23810
|
let uploader;
|
|
23805
23811
|
let uploaderServices;
|
|
23812
|
+
trackers.registerError(this.proctoringId, `finish uploader`);
|
|
23806
23813
|
if (versionVerify() !== "1.0.0.0") {
|
|
23807
23814
|
uploader = new ProctoringUploader(
|
|
23808
23815
|
this.proctoringSession,
|
|
@@ -23876,6 +23883,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
23876
23883
|
this.serviceType
|
|
23877
23884
|
);
|
|
23878
23885
|
}
|
|
23886
|
+
trackers.registerError(this.proctoringId, `finish uploader success`);
|
|
23879
23887
|
if (this.proctoringSession.alerts.length > 0) {
|
|
23880
23888
|
await this.backend.saveAlerts(this.context, this.proctoringSession).catch((err) => {
|
|
23881
23889
|
trackers.registerFinish(
|
|
@@ -23885,6 +23893,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
23885
23893
|
);
|
|
23886
23894
|
});
|
|
23887
23895
|
}
|
|
23896
|
+
trackers.registerError(this.proctoringId, `finish saveAlerts ok`);
|
|
23888
23897
|
await this.backend.finishAndSendUrls(this.context).then((finishResponse) => {
|
|
23889
23898
|
var _a2, _b, _c2, _d;
|
|
23890
23899
|
trackers.registerFinish(this.proctoringSession.id, true, "");
|
|
@@ -23896,6 +23905,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
23896
23905
|
"finish error: " + error
|
|
23897
23906
|
);
|
|
23898
23907
|
});
|
|
23908
|
+
trackers.registerError(this.proctoringId, `finish call`);
|
|
23899
23909
|
if (this.appChecker) {
|
|
23900
23910
|
const externalSessionId = this.appChecker.getExternalCameraSessionId();
|
|
23901
23911
|
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,15 @@ 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();
|
|
39057
|
+
trackers.registerError(this.proctoringId, `finish this.repository.save`);
|
|
39052
39058
|
await this.repository.save(this.proctoringSession);
|
|
39053
39059
|
let uploader;
|
|
39054
39060
|
let uploaderServices;
|
|
39061
|
+
trackers.registerError(this.proctoringId, `finish uploader`);
|
|
39055
39062
|
if (versionVerify() !== "1.0.0.0") {
|
|
39056
39063
|
uploader = new ProctoringUploader(
|
|
39057
39064
|
this.proctoringSession,
|
|
@@ -39125,6 +39132,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
39125
39132
|
this.serviceType
|
|
39126
39133
|
);
|
|
39127
39134
|
}
|
|
39135
|
+
trackers.registerError(this.proctoringId, `finish uploader success`);
|
|
39128
39136
|
if (this.proctoringSession.alerts.length > 0) {
|
|
39129
39137
|
await this.backend.saveAlerts(this.context, this.proctoringSession).catch((err) => {
|
|
39130
39138
|
trackers.registerFinish(
|
|
@@ -39134,6 +39142,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
39134
39142
|
);
|
|
39135
39143
|
});
|
|
39136
39144
|
}
|
|
39145
|
+
trackers.registerError(this.proctoringId, `finish saveAlerts ok`);
|
|
39137
39146
|
await this.backend.finishAndSendUrls(this.context).then((finishResponse) => {
|
|
39138
39147
|
var _a2, _b, _c2, _d;
|
|
39139
39148
|
trackers.registerFinish(this.proctoringSession.id, true, "");
|
|
@@ -39145,6 +39154,7 @@ Upload Services: ${uploaderServices}`,
|
|
|
39145
39154
|
"finish error: " + error
|
|
39146
39155
|
);
|
|
39147
39156
|
});
|
|
39157
|
+
trackers.registerError(this.proctoringId, `finish call`);
|
|
39148
39158
|
if (this.appChecker) {
|
|
39149
39159
|
const externalSessionId = this.appChecker.getExternalCameraSessionId();
|
|
39150
39160
|
if (externalSessionId != "null") {
|