easyproctor-hml 2.5.32 → 2.5.34
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/README.md +36 -7
- package/esm/index.js +7540 -5075
- package/index.js +7833 -5368
- package/modules/BaseDetection.d.ts +0 -1
- package/new-flow/recorders/CameraRecorder.d.ts +4 -4
- package/new-flow/recorders/NoiseRecorder.d.ts +0 -2
- package/new-flow/recorders/VolumeMeter.d.ts +1 -1
- package/package.json +1 -1
- package/plugins/recorder.d.ts +2 -2
- package/proctoring/options/ProctoringVideoOptions.d.ts +0 -3
- package/proctoring/proctoring.d.ts +0 -1
- package/unpkg/easyproctor.min.js +77 -42
- package/new-flow/recorders/AudioRecorder.d.ts +0 -24
|
@@ -17,7 +17,6 @@ export declare class BaseDetection {
|
|
|
17
17
|
detectorType: string;
|
|
18
18
|
modelAssetPath: string;
|
|
19
19
|
createdVideo: boolean;
|
|
20
|
-
startTime: Date | undefined;
|
|
21
20
|
constructor(detectorType: any, modelAssetPath: string, options?: {
|
|
22
21
|
onRealtimeAlertsCallback?: (response: any) => void;
|
|
23
22
|
}, paramsConfig?: IParamsConfig, classVideo?: string, classDiv?: string);
|
|
@@ -52,14 +52,13 @@ export declare class CameraRecorder implements IRecorder {
|
|
|
52
52
|
recordingPause: () => any;
|
|
53
53
|
recordingResume: () => any;
|
|
54
54
|
getBufferSize: () => any;
|
|
55
|
+
getStartTime: () => any;
|
|
55
56
|
setProctoringId(proctoringId: string): void;
|
|
56
57
|
initializeDetectors(): Promise<void>;
|
|
57
58
|
configImageCapture(): void;
|
|
58
59
|
currentRetries: number;
|
|
59
60
|
bufferError(e: any): Promise<void>;
|
|
60
|
-
startStream(
|
|
61
|
-
retry?: boolean;
|
|
62
|
-
}): Promise<void>;
|
|
61
|
+
startStream(): Promise<void>;
|
|
63
62
|
stopStream(): Promise<void>;
|
|
64
63
|
waitForVideoFlow(): Promise<void>;
|
|
65
64
|
attachAndWarmup(stream: MediaStream): Promise<void>;
|
|
@@ -69,7 +68,8 @@ export declare class CameraRecorder implements IRecorder {
|
|
|
69
68
|
resumeRecording(): Promise<void>;
|
|
70
69
|
getCurrentImageBase64(): Promise<string>;
|
|
71
70
|
packageCount: number;
|
|
72
|
-
captureFrame(): void
|
|
71
|
+
captureFrame(): Promise<void>;
|
|
72
|
+
startRealtimeCapture(): Promise<void>;
|
|
73
73
|
sendPackage(framesToSend: File[]): Promise<void>;
|
|
74
74
|
download(file: File): void;
|
|
75
75
|
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
@@ -10,14 +10,12 @@ export declare class NoiseRecorder implements IRecorder {
|
|
|
10
10
|
private optionsProctoring;
|
|
11
11
|
private proctoringSession;
|
|
12
12
|
private cameraRecorder;
|
|
13
|
-
private audioRecorder;
|
|
14
13
|
private intervalNoiseDetection;
|
|
15
14
|
private volumeMeter;
|
|
16
15
|
private recordingInProgress;
|
|
17
16
|
private paramsConfig;
|
|
18
17
|
private recordIndex;
|
|
19
18
|
private countLoopTimes;
|
|
20
|
-
private examStartTime;
|
|
21
19
|
private recordingStartTime;
|
|
22
20
|
private recordingEndTime;
|
|
23
21
|
private isSpeech;
|
|
@@ -6,8 +6,8 @@ export declare class VolumeMeter {
|
|
|
6
6
|
private stream;
|
|
7
7
|
private analyser;
|
|
8
8
|
private animationFrameId;
|
|
9
|
-
private microphone;
|
|
10
9
|
private audioContext;
|
|
10
|
+
private microphone;
|
|
11
11
|
constructor(stream: MediaStream);
|
|
12
12
|
start(options?: VolumeMeterOptions): Promise<any>;
|
|
13
13
|
stop(): void;
|
package/package.json
CHANGED
package/plugins/recorder.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ProctoringVideoOptions } from "../proctoring/options/ProctoringVideoOptions";
|
|
2
1
|
export declare function setRecorderProctoringId(id: string): void;
|
|
3
|
-
export default function recorder(stream: MediaStream, buffer: Blob[],
|
|
2
|
+
export default function recorder(stream: MediaStream, buffer: Blob[], onBufferSizeError?: boolean, onBufferSizeErrorCallback?: (e?: any) => void, audio?: boolean): {
|
|
4
3
|
startRecording: () => Promise<void>;
|
|
5
4
|
stopRecording: () => Promise<void>;
|
|
6
5
|
pauseRecording: () => Promise<void>;
|
|
7
6
|
resumeRecording: () => Promise<void>;
|
|
8
7
|
recorderOptions: MediaRecorderOptions;
|
|
9
8
|
getBufferSize: () => number;
|
|
9
|
+
getStartTime: () => Date | undefined;
|
|
10
10
|
};
|
|
@@ -3,9 +3,6 @@ export interface ProctoringVideoOptions {
|
|
|
3
3
|
height: number;
|
|
4
4
|
minWidth?: number;
|
|
5
5
|
minHeight?: number;
|
|
6
|
-
timeSlice?: number;
|
|
7
|
-
videoBitsPerSecond?: number;
|
|
8
|
-
mimeType?: string;
|
|
9
6
|
}
|
|
10
7
|
export declare function validatePartialVideoOptions(options: Partial<ProctoringVideoOptions>): ProctoringVideoOptions;
|
|
11
8
|
export declare const getDefaultProctoringVideoOptions: ProctoringVideoOptions;
|