@livedigital/client 3.36.0 → 3.36.1

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.
@@ -9,3 +9,5 @@ export declare const CONSUMER_CHECK_STATE_TIMEOUT = 4500;
9
9
  export declare const PEER_APP_DATA_MAX_SIZE_BYTES = 2048;
10
10
  export declare const SOCKET_ERROR_CODE_UNAUTHORIZED = "unauthorized";
11
11
  export declare const MAX_JOIN_ATTEMPTS = 4;
12
+ export declare const DEBOUNCE_LIMIT = 3;
13
+ export declare const TEN_SECONDS_IN_MS: number;
@@ -21,3 +21,7 @@ export const PEER_APP_DATA_MAX_SIZE_BYTES = 2048;
21
21
  export const SOCKET_ERROR_CODE_UNAUTHORIZED = 'unauthorized';
22
22
 
23
23
  export const MAX_JOIN_ATTEMPTS = 4;
24
+
25
+ export const DEBOUNCE_LIMIT = 3;
26
+
27
+ export const TEN_SECONDS_IN_MS = 10 * 1000;
@@ -1,6 +1,27 @@
1
- import type { atsvb } from 'audio-effects-sdk';
1
+ import type { atsvb, ErrorType } from 'audio-effects-sdk';
2
2
  import { LoggerFactory } from '../../../../../types/container';
3
3
  import { AudioTrackProcessor } from '../AudioTrackProcessor';
4
+ declare enum ErrorCode {
5
+ PERFORMANCE_STOP = 1001,
6
+ REDUCE_LATENCY = 1002
7
+ }
8
+ declare enum ErrorEmitter {
9
+ ATSVB = "atsvb",
10
+ STREAM_PROCESSOR = "stream_processor",
11
+ ML_INFERENCE = "ml_inference",
12
+ MODEL = "model",
13
+ WORKLET = "worklet",
14
+ WORKER = "worker",
15
+ MODEL_LOADER = "model_loader"
16
+ }
17
+ interface ErrorObject {
18
+ message: string;
19
+ type: ErrorType;
20
+ code?: ErrorCode;
21
+ emitter?: ErrorEmitter;
22
+ cause?: Error;
23
+ data?: any;
24
+ }
4
25
  declare global {
5
26
  interface Window {
6
27
  atsvb: typeof atsvb;
@@ -21,4 +42,7 @@ export declare class ASDKTrackProcessor implements AudioTrackProcessor {
21
42
  get isProcessing(): boolean;
22
43
  processTrack(track: MediaStreamTrack): Promise<MediaStreamTrack>;
23
44
  stopProcessing(): Promise<void>;
45
+ getUpdatedDebounceCounter(errorCode: number): number;
46
+ onError(error: ErrorObject): void;
24
47
  }
48
+ export {};