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.
@@ -50,7 +50,7 @@ export interface Alert {
50
50
  }
51
51
  export interface Recording {
52
52
  origin: RecordingOrigin;
53
- file: File;
53
+ arrayBuffer: ArrayBuffer;
54
54
  device: string;
55
55
  upload?: {
56
56
  storage: StorageService;
@@ -10,5 +10,7 @@ export declare class ProctoringUploader {
10
10
  upload(token: string, progress?: ProgressCallback): Promise<void>;
11
11
  private uploadRecordings;
12
12
  private uploadAllFiles;
13
+ private toFile;
14
+ private getFileType;
13
15
  private uploadFile;
14
16
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor-hml",
3
- "version": "2.7.11",
3
+ "version": "2.7.13",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",
@@ -1,9 +1,5 @@
1
1
  export declare function setRecorderProctoringId(id: string): void;
2
- export interface RecorderOptions {
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>;