easyproctor-hml 2.3.2 → 2.4.0
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/dtos/AlertDTO.d.ts +5 -5
- package/dtos/SaveScreenDTO.d.ts +5 -5
- package/dtos/SessionDTO.d.ts +10 -10
- package/dtos/StartProctoringResponse.d.ts +12 -12
- package/dtos/UploadDataDTO.d.ts +5 -5
- package/errors/errors.d.ts +18 -19
- package/esm/index.js +4435 -9304
- package/extension/extensionEasyCatcher.d.ts +11 -0
- package/extension/{extension.d.ts → extensionEasyProctor.d.ts} +11 -11
- package/index.d.ts +1 -1
- package/index.js +2445 -10154
- package/interfaces/Devices.d.ts +12 -11
- package/interfaces/ParamsConfig.d.ts +34 -34
- package/modules/BaseDetection.d.ts +39 -39
- package/modules/SpyCam.d.ts +31 -31
- package/modules/checkPermissions.d.ts +2 -2
- package/modules/enumarateDevices.d.ts +2 -2
- package/modules/faceDetection.d.ts +15 -15
- package/modules/objectDetection.d.ts +15 -15
- package/modules/onChangeDevices.d.ts +12 -9
- package/new-flow/backend/BackendService.d.ts +47 -48
- package/new-flow/backend/SpyCamBackendService.d.ts +27 -27
- package/new-flow/checkers/DeviceCheckerService.d.ts +61 -59
- package/new-flow/checkers/DeviceCheckerUI.d.ts +51 -51
- package/new-flow/download/IDownloadService.d.ts +4 -4
- package/new-flow/download/downloadService.d.ts +9 -9
- package/new-flow/proctoring/ProctoringRecorder.d.ts +12 -12
- package/new-flow/proctoring/ProctoringSession.d.ts +66 -65
- package/new-flow/proctoring/ProctoringUploader.d.ts +14 -14
- package/new-flow/recorders/AlertRecorder.d.ts +25 -21
- package/new-flow/recorders/AudioRecorder.d.ts +24 -24
- package/new-flow/recorders/CameraRecorder.d.ts +69 -69
- package/new-flow/recorders/IRecorder.d.ts +12 -12
- package/new-flow/recorders/NoiseRecorder.d.ts +46 -46
- package/new-flow/recorders/ScreenRecorder.d.ts +34 -30
- package/new-flow/recorders/VolumeMeter.d.ts +14 -14
- package/new-flow/repository/ISessionRepository.d.ts +11 -11
- package/new-flow/repository/IndexDbSessionRepository.d.ts +20 -20
- package/new-flow/upload/IUploadService.d.ts +10 -10
- package/new-flow/upload/UploadService.d.ts +13 -13
- package/new-flow/upload/uploadCalback.d.ts +1 -1
- package/package.json +2 -5
- package/plugins/insights.d.ts +20 -19
- package/plugins/recorder.d.ts +9 -9
- package/proctoring/Auth.d.ts +11 -11
- package/proctoring/CapturePhoto.d.ts +21 -21
- package/proctoring/DeviceChecker.d.ts +57 -57
- package/proctoring/SignTerm.d.ts +15 -15
- package/proctoring/options/ProctoringOptions.d.ts +19 -15
- package/proctoring/options/ProctoringVideoOptions.d.ts +8 -8
- package/proctoring/proctoring.d.ts +89 -83
- package/proctoring/useProctoring.d.ts +26 -25
- package/unpkg/easyproctor.min.js +44 -52
- package/utils/browserInformations.d.ts +1 -1
- package/utils/geolocation.d.ts +15 -15
- package/utils/time.d.ts +3 -3
- package/utils/verifyVersion.d.ts +1 -1
- package/proctoring/ExternalCameraChecker.d.ts +0 -47
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { ProctoringSessionOptions } from "../../proctoring/options/ProctoringOptions";
|
|
2
|
-
import { ProctoringVideoOptions } from "../../proctoring/options/ProctoringVideoOptions";
|
|
3
|
-
import { CameraRecorder } from "../recorders/CameraRecorder";
|
|
4
|
-
import { VolumeMeter } from "../recorders/VolumeMeter";
|
|
5
|
-
export interface checkDevicesInterfaceReturn {
|
|
6
|
-
cameraId: string;
|
|
7
|
-
microphoneId: string;
|
|
8
|
-
result: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare class DeviceCheckerUI {
|
|
11
|
-
options: ProctoringSessionOptions;
|
|
12
|
-
videoOptions: ProctoringVideoOptions;
|
|
13
|
-
cameraRecorder: CameraRecorder;
|
|
14
|
-
volumeMeter: VolumeMeter | undefined;
|
|
15
|
-
constructor(options: ProctoringSessionOptions | undefined, _videoOptions: ProctoringVideoOptions);
|
|
16
|
-
checkDevicesInterface(): void;
|
|
17
|
-
setSelectOption(options: ProctoringSessionOptions, changeSelectedDevice: (arg0: {
|
|
18
|
-
cameras: any;
|
|
19
|
-
microphones: any;
|
|
20
|
-
} | {
|
|
21
|
-
cameras: HTMLSelectElement | null;
|
|
22
|
-
microphones: HTMLSelectElement | null;
|
|
23
|
-
}) => any): Promise<void>;
|
|
24
|
-
onSelectOptionChange(changeSelectedDevice: {
|
|
25
|
-
(e: any): any;
|
|
26
|
-
(arg0: {
|
|
27
|
-
cameraId: string | undefined;
|
|
28
|
-
microphoneId: string | undefined;
|
|
29
|
-
}): any;
|
|
30
|
-
}): Promise<void>;
|
|
31
|
-
closeModal(): void;
|
|
32
|
-
modalActions(closeCheckDevices: {
|
|
33
|
-
(): Promise<void>;
|
|
34
|
-
(): void;
|
|
35
|
-
}): Promise<checkDevicesInterfaceReturn>;
|
|
36
|
-
realtimeAlertsUI(response: {
|
|
37
|
-
status: string;
|
|
38
|
-
description: string;
|
|
39
|
-
type?: string;
|
|
40
|
-
}): void;
|
|
41
|
-
waitingSpyDevices(waiting: boolean): void;
|
|
42
|
-
isSpyDevicesUI(allowedDevices: boolean): void;
|
|
43
|
-
isUnderResolutionUI(allowedResolution: boolean): void;
|
|
44
|
-
videoDeviceInterfaceUI(stream: MediaStream): void;
|
|
45
|
-
audioDeviceInterfaceUIAllowedAmbient(allowedAmbient: boolean): void;
|
|
46
|
-
audioDeviceInterfaceUIMicrophoneWorks(microphoneWorks: boolean): void;
|
|
47
|
-
audioDeviceInterfaceUIErrorExec(): void;
|
|
48
|
-
audioDeviceInterfaceUIPills(value: number): void;
|
|
49
|
-
addStyleMask(): Promise<void>;
|
|
50
|
-
applyStyles(element: any, styles: any): void;
|
|
51
|
-
}
|
|
1
|
+
import { ProctoringSessionOptions } from "../../proctoring/options/ProctoringOptions";
|
|
2
|
+
import { ProctoringVideoOptions } from "../../proctoring/options/ProctoringVideoOptions";
|
|
3
|
+
import { CameraRecorder } from "../recorders/CameraRecorder";
|
|
4
|
+
import { VolumeMeter } from "../recorders/VolumeMeter";
|
|
5
|
+
export interface checkDevicesInterfaceReturn {
|
|
6
|
+
cameraId: string;
|
|
7
|
+
microphoneId: string;
|
|
8
|
+
result: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class DeviceCheckerUI {
|
|
11
|
+
options: ProctoringSessionOptions;
|
|
12
|
+
videoOptions: ProctoringVideoOptions;
|
|
13
|
+
cameraRecorder: CameraRecorder;
|
|
14
|
+
volumeMeter: VolumeMeter | undefined;
|
|
15
|
+
constructor(options: ProctoringSessionOptions | undefined, _videoOptions: ProctoringVideoOptions);
|
|
16
|
+
checkDevicesInterface(): void;
|
|
17
|
+
setSelectOption(options: ProctoringSessionOptions, changeSelectedDevice: (arg0: {
|
|
18
|
+
cameras: any;
|
|
19
|
+
microphones: any;
|
|
20
|
+
} | {
|
|
21
|
+
cameras: HTMLSelectElement | null;
|
|
22
|
+
microphones: HTMLSelectElement | null;
|
|
23
|
+
}) => any): Promise<void>;
|
|
24
|
+
onSelectOptionChange(changeSelectedDevice: {
|
|
25
|
+
(e: any): any;
|
|
26
|
+
(arg0: {
|
|
27
|
+
cameraId: string | undefined;
|
|
28
|
+
microphoneId: string | undefined;
|
|
29
|
+
}): any;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
closeModal(): void;
|
|
32
|
+
modalActions(closeCheckDevices: {
|
|
33
|
+
(): Promise<void>;
|
|
34
|
+
(): void;
|
|
35
|
+
}): Promise<checkDevicesInterfaceReturn>;
|
|
36
|
+
realtimeAlertsUI(response: {
|
|
37
|
+
status: string;
|
|
38
|
+
description: string;
|
|
39
|
+
type?: string;
|
|
40
|
+
}): void;
|
|
41
|
+
waitingSpyDevices(waiting: boolean): void;
|
|
42
|
+
isSpyDevicesUI(allowedDevices: boolean): void;
|
|
43
|
+
isUnderResolutionUI(allowedResolution: boolean): void;
|
|
44
|
+
videoDeviceInterfaceUI(stream: MediaStream): void;
|
|
45
|
+
audioDeviceInterfaceUIAllowedAmbient(allowedAmbient: boolean): void;
|
|
46
|
+
audioDeviceInterfaceUIMicrophoneWorks(microphoneWorks: boolean): void;
|
|
47
|
+
audioDeviceInterfaceUIErrorExec(): void;
|
|
48
|
+
audioDeviceInterfaceUIPills(value: number): void;
|
|
49
|
+
addStyleMask(): Promise<void>;
|
|
50
|
+
applyStyles(element: any, styles: any): void;
|
|
51
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
-
export interface IDownloadService {
|
|
3
|
-
upload(data: UploadDataDTO, token: string): any;
|
|
4
|
-
}
|
|
1
|
+
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
+
export interface IDownloadService {
|
|
3
|
+
upload(data: UploadDataDTO, token: string): any;
|
|
4
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
-
import { IDownloadService } from "./IDownloadService";
|
|
3
|
-
export declare class DownloadService implements IDownloadService {
|
|
4
|
-
private readonly proctoringId;
|
|
5
|
-
constructor(proctoringId: string);
|
|
6
|
-
loadingBoolean: boolean;
|
|
7
|
-
loadingInterval: any;
|
|
8
|
-
upload(data: UploadDataDTO, token: string): Promise<void>;
|
|
9
|
-
}
|
|
1
|
+
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
+
import { IDownloadService } from "./IDownloadService";
|
|
3
|
+
export declare class DownloadService implements IDownloadService {
|
|
4
|
+
private readonly proctoringId;
|
|
5
|
+
constructor(proctoringId: string);
|
|
6
|
+
loadingBoolean: boolean;
|
|
7
|
+
loadingInterval: any;
|
|
8
|
+
upload(data: UploadDataDTO, token: string): Promise<void>;
|
|
9
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IRecorder } from "../recorders/IRecorder";
|
|
2
|
-
import { ProctoringSession } from "./ProctoringSession";
|
|
3
|
-
export declare class ProctoringRecorder {
|
|
4
|
-
private session;
|
|
5
|
-
private recorders;
|
|
6
|
-
constructor(session: ProctoringSession, recorders: IRecorder[]);
|
|
7
|
-
startAll(): Promise<void>;
|
|
8
|
-
pauseAll(): Promise<void>;
|
|
9
|
-
resumeAll(): Promise<void>;
|
|
10
|
-
stopAll(): Promise<void>;
|
|
11
|
-
saveAllOnSession(): Promise<void>;
|
|
12
|
-
}
|
|
1
|
+
import { IRecorder } from "../recorders/IRecorder";
|
|
2
|
+
import { ProctoringSession } from "./ProctoringSession";
|
|
3
|
+
export declare class ProctoringRecorder {
|
|
4
|
+
private session;
|
|
5
|
+
private recorders;
|
|
6
|
+
constructor(session: ProctoringSession, recorders: IRecorder[]);
|
|
7
|
+
startAll(): Promise<void>;
|
|
8
|
+
pauseAll(): Promise<void>;
|
|
9
|
+
resumeAll(): Promise<void>;
|
|
10
|
+
stopAll(): Promise<void>;
|
|
11
|
+
saveAllOnSession(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -1,65 +1,66 @@
|
|
|
1
|
-
export declare enum SessionState {
|
|
2
|
-
Created = "Created",
|
|
3
|
-
Recording = "Recording",
|
|
4
|
-
Paused = "Paused",
|
|
5
|
-
Ended = "Ended",
|
|
6
|
-
EndConfirmed = "EndConfirmed",
|
|
7
|
-
Uploaded = "Uploaded",
|
|
8
|
-
UploadConfirmed = "UploadConfirmed"
|
|
9
|
-
}
|
|
10
|
-
export declare enum StorageService {
|
|
11
|
-
none = "upload"
|
|
12
|
-
}
|
|
13
|
-
export declare enum RecordingOrigin {
|
|
14
|
-
Screen = "Screen",
|
|
15
|
-
Mic = "Mic",
|
|
16
|
-
Camera = "Camera"
|
|
17
|
-
}
|
|
18
|
-
export declare enum AlertCategory {
|
|
19
|
-
LostFocus = 25,
|
|
20
|
-
PotentialCamera = 32,
|
|
21
|
-
SpyDeviceDisconnected = 33
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
1
|
+
export declare enum SessionState {
|
|
2
|
+
Created = "Created",
|
|
3
|
+
Recording = "Recording",
|
|
4
|
+
Paused = "Paused",
|
|
5
|
+
Ended = "Ended",
|
|
6
|
+
EndConfirmed = "EndConfirmed",
|
|
7
|
+
Uploaded = "Uploaded",
|
|
8
|
+
UploadConfirmed = "UploadConfirmed"
|
|
9
|
+
}
|
|
10
|
+
export declare enum StorageService {
|
|
11
|
+
none = "upload"
|
|
12
|
+
}
|
|
13
|
+
export declare enum RecordingOrigin {
|
|
14
|
+
Screen = "Screen",
|
|
15
|
+
Mic = "Mic",
|
|
16
|
+
Camera = "Camera"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AlertCategory {
|
|
19
|
+
LostFocus = 25,
|
|
20
|
+
PotentialCamera = 32,
|
|
21
|
+
SpyDeviceDisconnected = 33,
|
|
22
|
+
StopSharingScreen = 34
|
|
23
|
+
}
|
|
24
|
+
export declare enum AlertType {
|
|
25
|
+
Audio = 1,
|
|
26
|
+
Video = 2,
|
|
27
|
+
Screen = 3,
|
|
28
|
+
Image = 4,
|
|
29
|
+
Environment = 5
|
|
30
|
+
}
|
|
31
|
+
export interface Alert {
|
|
32
|
+
begin: number;
|
|
33
|
+
end: number;
|
|
34
|
+
alert: AlertCategory;
|
|
35
|
+
type: AlertType;
|
|
36
|
+
}
|
|
37
|
+
export interface Recording {
|
|
38
|
+
origin: RecordingOrigin;
|
|
39
|
+
file: File;
|
|
40
|
+
device: string;
|
|
41
|
+
upload?: {
|
|
42
|
+
storage: StorageService;
|
|
43
|
+
azureUrl: string;
|
|
44
|
+
awsUrl: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export declare class ProctoringSession {
|
|
48
|
+
id: string;
|
|
49
|
+
state: SessionState;
|
|
50
|
+
startedAt: Date;
|
|
51
|
+
sessionDuration: number;
|
|
52
|
+
alerts: Alert[];
|
|
53
|
+
recordings: Recording[];
|
|
54
|
+
get hasSomethingToUpload(): boolean;
|
|
55
|
+
constructor();
|
|
56
|
+
start(): void;
|
|
57
|
+
pause(): void;
|
|
58
|
+
resume(): void;
|
|
59
|
+
stop(): void;
|
|
60
|
+
setProctoringId(proctoringId: string): void;
|
|
61
|
+
setEndConfirmed(): void;
|
|
62
|
+
setUploaded(): void;
|
|
63
|
+
setUploadConfirmed(): void;
|
|
64
|
+
addAlert(alert: Alert): void;
|
|
65
|
+
addRecording(rec: Recording): void;
|
|
66
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IDownloadService } from "../download/IDownloadService";
|
|
2
|
-
import { IUploadService } from "../upload/IUploadService";
|
|
3
|
-
import { ProgressCallback } from "../upload/uploadCalback";
|
|
4
|
-
import { ProctoringSession } from "./ProctoringSession";
|
|
5
|
-
export declare class ProctoringUploader {
|
|
6
|
-
private session;
|
|
7
|
-
private proctoringId;
|
|
8
|
-
private uploadServices;
|
|
9
|
-
constructor(session: ProctoringSession, proctoringId: string, uploadServices: IUploadService[] | IDownloadService[]);
|
|
10
|
-
upload(token: string, progress?: ProgressCallback): Promise<void>;
|
|
11
|
-
private uploadRecordings;
|
|
12
|
-
private uploadAllFiles;
|
|
13
|
-
private uploadFile;
|
|
14
|
-
}
|
|
1
|
+
import { IDownloadService } from "../download/IDownloadService";
|
|
2
|
+
import { IUploadService } from "../upload/IUploadService";
|
|
3
|
+
import { ProgressCallback } from "../upload/uploadCalback";
|
|
4
|
+
import { ProctoringSession } from "./ProctoringSession";
|
|
5
|
+
export declare class ProctoringUploader {
|
|
6
|
+
private session;
|
|
7
|
+
private proctoringId;
|
|
8
|
+
private uploadServices;
|
|
9
|
+
constructor(session: ProctoringSession, proctoringId: string, uploadServices: IUploadService[] | IDownloadService[]);
|
|
10
|
+
upload(token: string, progress?: ProgressCallback): Promise<void>;
|
|
11
|
+
private uploadRecordings;
|
|
12
|
+
private uploadAllFiles;
|
|
13
|
+
private uploadFile;
|
|
14
|
+
}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { ProctoringSessionOptions } from "../../proctoring/options/ProctoringOptions";
|
|
2
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
-
import { IRecorder } from "./IRecorder";
|
|
4
|
-
export declare class AlertRecorder implements IRecorder {
|
|
5
|
-
private alerts;
|
|
6
|
-
private startTime;
|
|
7
|
-
private onLostFocusCallback;
|
|
8
|
-
private onFocusCallback;
|
|
9
|
-
private optionsProctoring;
|
|
10
|
-
constructor(options: {
|
|
11
|
-
onLostFocusCallback: () => void;
|
|
12
|
-
onFocusCallback: () => void;
|
|
13
|
-
}, optionsProctoring: ProctoringSessionOptions);
|
|
14
|
-
startRecording(): Promise<void>;
|
|
15
|
-
pauseRecording(): Promise<void>;
|
|
16
|
-
resumeRecording(): Promise<void>;
|
|
17
|
-
stopRecording(): Promise<void>;
|
|
18
|
-
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
19
|
-
private onLostFocus;
|
|
20
|
-
private onReturnFocus;
|
|
21
|
-
}
|
|
1
|
+
import { ProctoringSessionOptions } from "../../proctoring/options/ProctoringOptions";
|
|
2
|
+
import { AlertCategory, AlertType, ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
+
import { IRecorder } from "./IRecorder";
|
|
4
|
+
export declare class AlertRecorder implements IRecorder {
|
|
5
|
+
private alerts;
|
|
6
|
+
private startTime;
|
|
7
|
+
private onLostFocusCallback;
|
|
8
|
+
private onFocusCallback;
|
|
9
|
+
private optionsProctoring;
|
|
10
|
+
constructor(options: {
|
|
11
|
+
onLostFocusCallback: () => void;
|
|
12
|
+
onFocusCallback: () => void;
|
|
13
|
+
}, optionsProctoring: ProctoringSessionOptions);
|
|
14
|
+
startRecording(): Promise<void>;
|
|
15
|
+
pauseRecording(): Promise<void>;
|
|
16
|
+
resumeRecording(): Promise<void>;
|
|
17
|
+
stopRecording(): Promise<void>;
|
|
18
|
+
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
19
|
+
private onLostFocus;
|
|
20
|
+
private onReturnFocus;
|
|
21
|
+
addAlert({ alert, type }: {
|
|
22
|
+
alert: AlertCategory;
|
|
23
|
+
type: AlertType;
|
|
24
|
+
}): void;
|
|
25
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
2
|
-
import { IRecorder } from "./IRecorder";
|
|
3
|
-
import { AudioBehaviourParameters } from "../../interfaces/ParamsConfig";
|
|
4
|
-
export declare class AudioRecorder implements IRecorder {
|
|
5
|
-
blobs: Blob[];
|
|
6
|
-
recorder?: any;
|
|
7
|
-
audioStream: MediaStream;
|
|
8
|
-
private options;
|
|
9
|
-
private audioParams;
|
|
10
|
-
constructor(options?: {
|
|
11
|
-
cameraId?: string;
|
|
12
|
-
microphoneId?: string;
|
|
13
|
-
}, audioParams?: AudioBehaviourParameters);
|
|
14
|
-
recordingStart: () => any;
|
|
15
|
-
recordingStop: () => any;
|
|
16
|
-
recordingPause: () => any;
|
|
17
|
-
recordingResume: () => any;
|
|
18
|
-
file?: File;
|
|
19
|
-
startRecording(): Promise<void>;
|
|
20
|
-
pauseRecording(): Promise<void>;
|
|
21
|
-
resumeRecording(): Promise<void>;
|
|
22
|
-
stopRecording(): Promise<void>;
|
|
23
|
-
saveOnSession(session: ProctoringSession, start?: number, end?: number): Promise<void>;
|
|
24
|
-
}
|
|
1
|
+
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
2
|
+
import { IRecorder } from "./IRecorder";
|
|
3
|
+
import { AudioBehaviourParameters } from "../../interfaces/ParamsConfig";
|
|
4
|
+
export declare class AudioRecorder implements IRecorder {
|
|
5
|
+
blobs: Blob[];
|
|
6
|
+
recorder?: any;
|
|
7
|
+
audioStream: MediaStream;
|
|
8
|
+
private options;
|
|
9
|
+
private audioParams;
|
|
10
|
+
constructor(options?: {
|
|
11
|
+
cameraId?: string;
|
|
12
|
+
microphoneId?: string;
|
|
13
|
+
}, audioParams?: AudioBehaviourParameters);
|
|
14
|
+
recordingStart: () => any;
|
|
15
|
+
recordingStop: () => any;
|
|
16
|
+
recordingPause: () => any;
|
|
17
|
+
recordingResume: () => any;
|
|
18
|
+
file?: File;
|
|
19
|
+
startRecording(): Promise<void>;
|
|
20
|
+
pauseRecording(): Promise<void>;
|
|
21
|
+
resumeRecording(): Promise<void>;
|
|
22
|
+
stopRecording(): Promise<void>;
|
|
23
|
+
saveOnSession(session: ProctoringSession, start?: number, end?: number): Promise<void>;
|
|
24
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { RecordRTCPromisesHandler } from "recordrtc";
|
|
2
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
-
import { IRecorder } from "./IRecorder";
|
|
4
|
-
import { BackendService } from "../backend/BackendService";
|
|
5
|
-
import { UploadService } from "../upload/UploadService";
|
|
6
|
-
import IParamsConfig from "../../interfaces/ParamsConfig";
|
|
7
|
-
import { ProctoringVideoOptions } from "../../proctoring/options/ProctoringVideoOptions";
|
|
8
|
-
import { DevicesChanged } from "../../interfaces/Devices";
|
|
9
|
-
import { ObjectDetection } from "../../modules/objectDetection";
|
|
10
|
-
import { FaceDetection } from "../../modules/faceDetection";
|
|
11
|
-
export declare class CameraRecorder implements IRecorder {
|
|
12
|
-
private blobs;
|
|
13
|
-
private paramsConfig;
|
|
14
|
-
private options;
|
|
15
|
-
private videoOptions;
|
|
16
|
-
private blobsRTC;
|
|
17
|
-
recorder: RecordRTCPromisesHandler;
|
|
18
|
-
cameraStream: MediaStream;
|
|
19
|
-
imageCount: number;
|
|
20
|
-
imageCapture: any;
|
|
21
|
-
imageInterval: any;
|
|
22
|
-
sendFrameInterval: any;
|
|
23
|
-
backend: BackendService | undefined;
|
|
24
|
-
backendToken: string | undefined;
|
|
25
|
-
proctoringId: string | undefined;
|
|
26
|
-
private recorderOptions;
|
|
27
|
-
upload: UploadService | undefined;
|
|
28
|
-
video: HTMLVideoElement;
|
|
29
|
-
canvas: HTMLCanvasElement;
|
|
30
|
-
faceDetection: FaceDetection;
|
|
31
|
-
objectDetection: ObjectDetection;
|
|
32
|
-
filesToUpload: File[];
|
|
33
|
-
private intervalNoiseDetection;
|
|
34
|
-
private volumeMeter;
|
|
35
|
-
constructor(options: {
|
|
36
|
-
cameraId?: string;
|
|
37
|
-
microphoneId?: string;
|
|
38
|
-
onBufferSizeError?: boolean;
|
|
39
|
-
onBufferSizeErrorCallback: (cameraStream?: any) => void;
|
|
40
|
-
proctoringType?: "VIDEO" | "IMAGE" | "REALTIME";
|
|
41
|
-
onChangeDevicesCallback?: (devices: DevicesChanged) => void;
|
|
42
|
-
onRealtimeAlertsCallback?: (response: any) => void;
|
|
43
|
-
}, videoOptions: ProctoringVideoOptions, paramsConfig?: IParamsConfig, backend?: BackendService, backendToken?: string);
|
|
44
|
-
file?: File;
|
|
45
|
-
recordingStart: () => any;
|
|
46
|
-
recordingStop: () => any;
|
|
47
|
-
recordingPause: () => any;
|
|
48
|
-
recordingResume: () => any;
|
|
49
|
-
getBufferSize: () => any;
|
|
50
|
-
setProctoringId(proctoringId: string): void;
|
|
51
|
-
initializeDetectors(): Promise<void>;
|
|
52
|
-
configImageCapture(): void;
|
|
53
|
-
currentRetries: number;
|
|
54
|
-
bufferError(e: any): Promise<void>;
|
|
55
|
-
startRecording(options?: {
|
|
56
|
-
retry?: boolean;
|
|
57
|
-
}): Promise<void>;
|
|
58
|
-
stopRecording(): Promise<void>;
|
|
59
|
-
pauseRecording(): Promise<void>;
|
|
60
|
-
resumeRecording(): Promise<void>;
|
|
61
|
-
photoShotsCycle(): void;
|
|
62
|
-
captureFrame(): void;
|
|
63
|
-
sendFrame(): void;
|
|
64
|
-
download(file: File): void;
|
|
65
|
-
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
66
|
-
getFile(file: string, name: string, type: string): Promise<File>;
|
|
67
|
-
noiseWait: number;
|
|
68
|
-
private onNoiseDetected;
|
|
69
|
-
}
|
|
1
|
+
import { RecordRTCPromisesHandler } from "recordrtc";
|
|
2
|
+
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
+
import { IRecorder } from "./IRecorder";
|
|
4
|
+
import { BackendService } from "../backend/BackendService";
|
|
5
|
+
import { UploadService } from "../upload/UploadService";
|
|
6
|
+
import IParamsConfig from "../../interfaces/ParamsConfig";
|
|
7
|
+
import { ProctoringVideoOptions } from "../../proctoring/options/ProctoringVideoOptions";
|
|
8
|
+
import { DevicesChanged } from "../../interfaces/Devices";
|
|
9
|
+
import { ObjectDetection } from "../../modules/objectDetection";
|
|
10
|
+
import { FaceDetection } from "../../modules/faceDetection";
|
|
11
|
+
export declare class CameraRecorder implements IRecorder {
|
|
12
|
+
private blobs;
|
|
13
|
+
private paramsConfig;
|
|
14
|
+
private options;
|
|
15
|
+
private videoOptions;
|
|
16
|
+
private blobsRTC;
|
|
17
|
+
recorder: RecordRTCPromisesHandler;
|
|
18
|
+
cameraStream: MediaStream;
|
|
19
|
+
imageCount: number;
|
|
20
|
+
imageCapture: any;
|
|
21
|
+
imageInterval: any;
|
|
22
|
+
sendFrameInterval: any;
|
|
23
|
+
backend: BackendService | undefined;
|
|
24
|
+
backendToken: string | undefined;
|
|
25
|
+
proctoringId: string | undefined;
|
|
26
|
+
private recorderOptions;
|
|
27
|
+
upload: UploadService | undefined;
|
|
28
|
+
video: HTMLVideoElement;
|
|
29
|
+
canvas: HTMLCanvasElement;
|
|
30
|
+
faceDetection: FaceDetection;
|
|
31
|
+
objectDetection: ObjectDetection;
|
|
32
|
+
filesToUpload: File[];
|
|
33
|
+
private intervalNoiseDetection;
|
|
34
|
+
private volumeMeter;
|
|
35
|
+
constructor(options: {
|
|
36
|
+
cameraId?: string;
|
|
37
|
+
microphoneId?: string;
|
|
38
|
+
onBufferSizeError?: boolean;
|
|
39
|
+
onBufferSizeErrorCallback: (cameraStream?: any) => void;
|
|
40
|
+
proctoringType?: "VIDEO" | "IMAGE" | "REALTIME";
|
|
41
|
+
onChangeDevicesCallback?: (devices: DevicesChanged) => void;
|
|
42
|
+
onRealtimeAlertsCallback?: (response: any) => void;
|
|
43
|
+
}, videoOptions: ProctoringVideoOptions, paramsConfig?: IParamsConfig, backend?: BackendService, backendToken?: string);
|
|
44
|
+
file?: File;
|
|
45
|
+
recordingStart: () => any;
|
|
46
|
+
recordingStop: () => any;
|
|
47
|
+
recordingPause: () => any;
|
|
48
|
+
recordingResume: () => any;
|
|
49
|
+
getBufferSize: () => any;
|
|
50
|
+
setProctoringId(proctoringId: string): void;
|
|
51
|
+
initializeDetectors(): Promise<void>;
|
|
52
|
+
configImageCapture(): void;
|
|
53
|
+
currentRetries: number;
|
|
54
|
+
bufferError(e: any): Promise<void>;
|
|
55
|
+
startRecording(options?: {
|
|
56
|
+
retry?: boolean;
|
|
57
|
+
}): Promise<void>;
|
|
58
|
+
stopRecording(): Promise<void>;
|
|
59
|
+
pauseRecording(): Promise<void>;
|
|
60
|
+
resumeRecording(): Promise<void>;
|
|
61
|
+
photoShotsCycle(): void;
|
|
62
|
+
captureFrame(): void;
|
|
63
|
+
sendFrame(): void;
|
|
64
|
+
download(file: File): void;
|
|
65
|
+
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
66
|
+
getFile(file: string, name: string, type: string): Promise<File>;
|
|
67
|
+
noiseWait: number;
|
|
68
|
+
private onNoiseDetected;
|
|
69
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
2
|
-
export declare enum RecordingType {
|
|
3
|
-
}
|
|
4
|
-
export interface IRecorder {
|
|
5
|
-
startRecording(options?: {
|
|
6
|
-
retry?: boolean;
|
|
7
|
-
}): Promise<void>;
|
|
8
|
-
pauseRecording(): Promise<void>;
|
|
9
|
-
resumeRecording(): Promise<void>;
|
|
10
|
-
stopRecording(): Promise<void>;
|
|
11
|
-
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
12
|
-
}
|
|
1
|
+
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
2
|
+
export declare enum RecordingType {
|
|
3
|
+
}
|
|
4
|
+
export interface IRecorder {
|
|
5
|
+
startRecording(options?: {
|
|
6
|
+
retry?: boolean;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
pauseRecording(): Promise<void>;
|
|
9
|
+
resumeRecording(): Promise<void>;
|
|
10
|
+
stopRecording(): Promise<void>;
|
|
11
|
+
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
12
|
+
}
|