easyproctor-hml 2.7.11 → 2.7.13
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 +62 -906
- package/index.js +62 -906
- package/new-flow/proctoring/ProctoringSession.d.ts +1 -1
- package/new-flow/proctoring/ProctoringUploader.d.ts +2 -0
- package/new-flow/recorders/CameraRecorder.d.ts +0 -24
- package/package.json +1 -1
- package/plugins/recorder.d.ts +1 -5
- package/unpkg/easyproctor.min.js +45 -48
- package/new-flow/chunk/BackgroundUploadService.d.ts +0 -38
- package/new-flow/chunk/ChunkStorageService.d.ts +0 -25
|
@@ -40,17 +40,6 @@ export declare class CameraRecorder implements IRecorder {
|
|
|
40
40
|
private videoElement;
|
|
41
41
|
private duration;
|
|
42
42
|
stopped: boolean;
|
|
43
|
-
private static readonly CHUNK_TIMESLICE_MS;
|
|
44
|
-
private static readonly LS_SESSION_KEY;
|
|
45
|
-
private chunkStorage;
|
|
46
|
-
private backgroundUpload;
|
|
47
|
-
private chunkIndex;
|
|
48
|
-
private pendingChunkSaves;
|
|
49
|
-
onSessionInterrupted?: () => void;
|
|
50
|
-
onVisibilityRestored?: () => void;
|
|
51
|
-
private boundVisibilityHandler;
|
|
52
|
-
private boundPageHideHandler;
|
|
53
|
-
private get isChunkEnabled();
|
|
54
43
|
constructor(options: {
|
|
55
44
|
cameraId?: string;
|
|
56
45
|
microphoneId?: string;
|
|
@@ -69,17 +58,6 @@ export declare class CameraRecorder implements IRecorder {
|
|
|
69
58
|
getStartTime: () => any;
|
|
70
59
|
getDuration: () => any;
|
|
71
60
|
setProctoringId(proctoringId: string): void;
|
|
72
|
-
private persistSessionState;
|
|
73
|
-
private clearSessionState;
|
|
74
|
-
static checkForActiveSession(): {
|
|
75
|
-
proctoringId: string;
|
|
76
|
-
status: string;
|
|
77
|
-
timestamp: number;
|
|
78
|
-
} | null;
|
|
79
|
-
private setupLifecycleListeners;
|
|
80
|
-
private removeLifecycleListeners;
|
|
81
|
-
private handleVisibilityChange;
|
|
82
|
-
private handlePageHide;
|
|
83
61
|
initializeDetectors(): Promise<void>;
|
|
84
62
|
configImageCapture(): void;
|
|
85
63
|
currentRetries: number;
|
|
@@ -90,7 +68,6 @@ export declare class CameraRecorder implements IRecorder {
|
|
|
90
68
|
attachAndWarmup(stream: MediaStream): Promise<void>;
|
|
91
69
|
startRecording(): Promise<void>;
|
|
92
70
|
stopRecording(): Promise<void>;
|
|
93
|
-
private handleNewChunk;
|
|
94
71
|
pauseRecording(): Promise<void>;
|
|
95
72
|
resumeRecording(): Promise<void>;
|
|
96
73
|
getCurrentImageBase64(): Promise<string>;
|
|
@@ -102,7 +79,6 @@ export declare class CameraRecorder implements IRecorder {
|
|
|
102
79
|
download(file: File): void;
|
|
103
80
|
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
104
81
|
getFile(file: string, name: string, type: string): Promise<File>;
|
|
105
|
-
private checkInternetStability;
|
|
106
82
|
noiseWait: number;
|
|
107
83
|
private onNoiseDetected;
|
|
108
84
|
}
|
package/package.json
CHANGED
package/plugins/recorder.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
export declare function setRecorderProctoringId(id: string): void;
|
|
2
|
-
export
|
|
3
|
-
timeslice?: number;
|
|
4
|
-
onChunkAvailable?: (blob: Blob, chunkIndex: number) => void;
|
|
5
|
-
}
|
|
6
|
-
export default function recorder(stream: MediaStream, buffer: Blob[], onBufferSizeError?: boolean, onBufferSizeErrorCallback?: (e?: any) => void, audio?: boolean, recorderOpts?: RecorderOptions): {
|
|
2
|
+
export default function recorder(stream: MediaStream, buffer: Blob[], onBufferSizeError?: boolean, onBufferSizeErrorCallback?: (e?: any) => void, audio?: boolean): {
|
|
7
3
|
startRecording: () => Promise<void>;
|
|
8
4
|
stopRecording: () => Promise<void>;
|
|
9
5
|
pauseRecording: () => Promise<void>;
|