@livedigital/client 3.33.0 → 3.33.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.
- package/dist/engine/media/index.d.ts +6 -1
- package/dist/engine/media/streamEffects/audio/asdk/ASDKTrackProcessor.d.ts +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/engine/media/index.ts +18 -6
- package/src/engine/media/streamEffects/audio/asdk/ASDKTrackProcessor.ts +8 -4
|
@@ -10,6 +10,11 @@ import Logger from '../Logger';
|
|
|
10
10
|
import { ProcessorsCache } from './streamEffects/ProcessorsCache';
|
|
11
11
|
import EffectsSDKTrackProcessor from './streamEffects/video/esdk/TrackProcessor';
|
|
12
12
|
import MediaStreamTrackManager from './tracks/MediaStreamTrackManager';
|
|
13
|
+
export declare type DenoiserFallbackContext = {
|
|
14
|
+
reason: string;
|
|
15
|
+
options?: CreateMicrophoneAudioTrackOptions;
|
|
16
|
+
error?: Error;
|
|
17
|
+
};
|
|
13
18
|
declare class Media {
|
|
14
19
|
#private;
|
|
15
20
|
private readonly config;
|
|
@@ -41,7 +46,7 @@ declare class Media {
|
|
|
41
46
|
setTrack(track: BaseTrack): void;
|
|
42
47
|
initEffectsSDK(): Promise<boolean>;
|
|
43
48
|
initDenoiser(track: AudioTrack, options?: CreateMicrophoneAudioTrackOptions): Promise<void>;
|
|
44
|
-
fallbackToRNoise(track: AudioTrack,
|
|
49
|
+
fallbackToRNoise(track: AudioTrack, context: DenoiserFallbackContext): Promise<void>;
|
|
45
50
|
createEffectsSDKTrackProcessor(trackLabel?: TrackLabel): Promise<EffectsSDKTrackProcessor>;
|
|
46
51
|
static getVideoTrackTransformParams(track: MediaStreamTrack): TransformParams;
|
|
47
52
|
static getScreenVideoTrackParams(options?: CreateScreenMediaOptions): CreateVideoTrackParams;
|
|
@@ -16,7 +16,7 @@ export declare class ASDKTrackProcessor implements AudioTrackProcessor {
|
|
|
16
16
|
#private;
|
|
17
17
|
readonly type = "asdk";
|
|
18
18
|
constructor(params: AudioTrackProcessorParams);
|
|
19
|
-
setOnError(onError: () => void): void;
|
|
19
|
+
setOnError(onError: (reason: string, error: Error | undefined) => void): void;
|
|
20
20
|
init(): Promise<void>;
|
|
21
21
|
get isProcessing(): boolean;
|
|
22
22
|
processTrack(track: MediaStreamTrack): Promise<MediaStreamTrack>;
|