easyproctor 0.0.43 → 0.0.44
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 +6 -2
- package/index.js +6 -2
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +11 -11
package/esm/index.js
CHANGED
|
@@ -8424,8 +8424,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8424
8424
|
}
|
|
8425
8425
|
return { cameraFile, screenFile };
|
|
8426
8426
|
};
|
|
8427
|
-
async function
|
|
8428
|
-
const { cameraId, microphoneId, allowOnlyFirstMonitor = true, allowMultipleMonitors = false, captureScreen = true, proctoringType } = options;
|
|
8427
|
+
async function initConfig() {
|
|
8429
8428
|
if (proctoringConfig != void 0) {
|
|
8430
8429
|
setConfiguration(proctoringConfig.account, proctoringConfig.containerName, proctoringConfig.sas);
|
|
8431
8430
|
azureBlobUrl = proctoringConfig.azureBlobUrl;
|
|
@@ -8442,6 +8441,10 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8442
8441
|
setBaseUrl(config.baseUrl);
|
|
8443
8442
|
init(config.insights);
|
|
8444
8443
|
}
|
|
8444
|
+
}
|
|
8445
|
+
async function start(options = defaultProctoringOptions) {
|
|
8446
|
+
const { cameraId, microphoneId, allowOnlyFirstMonitor = true, allowMultipleMonitors = false, captureScreen = true, proctoringType } = options;
|
|
8447
|
+
await initConfig();
|
|
8445
8448
|
if (!allowMultipleMonitors) {
|
|
8446
8449
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
8447
8450
|
if (hasMultipleMonitors) {
|
|
@@ -8512,6 +8515,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8512
8515
|
async function resume(options = defaultProctoringOptions, examId) {
|
|
8513
8516
|
_clear();
|
|
8514
8517
|
const { cameraId, microphoneId, allowOnlyFirstMonitor = true, allowMultipleMonitors = false, captureScreen = true, proctoringType } = options;
|
|
8518
|
+
await initConfig();
|
|
8515
8519
|
if (!allowMultipleMonitors) {
|
|
8516
8520
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
8517
8521
|
if (hasMultipleMonitors) {
|
package/index.js
CHANGED
|
@@ -8764,8 +8764,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8764
8764
|
}
|
|
8765
8765
|
return { cameraFile, screenFile };
|
|
8766
8766
|
};
|
|
8767
|
-
async function
|
|
8768
|
-
const { cameraId, microphoneId, allowOnlyFirstMonitor = true, allowMultipleMonitors = false, captureScreen = true, proctoringType } = options;
|
|
8767
|
+
async function initConfig() {
|
|
8769
8768
|
if (proctoringConfig != void 0) {
|
|
8770
8769
|
setConfiguration(proctoringConfig.account, proctoringConfig.containerName, proctoringConfig.sas);
|
|
8771
8770
|
azureBlobUrl = proctoringConfig.azureBlobUrl;
|
|
@@ -8782,6 +8781,10 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8782
8781
|
setBaseUrl(config.baseUrl);
|
|
8783
8782
|
init(config.insights);
|
|
8784
8783
|
}
|
|
8784
|
+
}
|
|
8785
|
+
async function start(options = defaultProctoringOptions) {
|
|
8786
|
+
const { cameraId, microphoneId, allowOnlyFirstMonitor = true, allowMultipleMonitors = false, captureScreen = true, proctoringType } = options;
|
|
8787
|
+
await initConfig();
|
|
8785
8788
|
if (!allowMultipleMonitors) {
|
|
8786
8789
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
8787
8790
|
if (hasMultipleMonitors) {
|
|
@@ -8852,6 +8855,7 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8852
8855
|
async function resume(options = defaultProctoringOptions, examId) {
|
|
8853
8856
|
_clear();
|
|
8854
8857
|
const { cameraId, microphoneId, allowOnlyFirstMonitor = true, allowMultipleMonitors = false, captureScreen = true, proctoringType } = options;
|
|
8858
|
+
await initConfig();
|
|
8855
8859
|
if (!allowMultipleMonitors) {
|
|
8856
8860
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
8857
8861
|
if (hasMultipleMonitors) {
|