@byteplus/rtc 4.56.3 → 4.58.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/extension-ainr/index.d.ts +68 -5
- package/extension-ainr/index.js +9 -1
- package/extension-ainr/index.umd.js +7 -1
- package/extension-beauty/index.d.ts +242 -133
- package/extension-beauty/index.js +9 -1
- package/extension-beauty/index.umd.js +7 -1
- package/index.d.ts +1995 -1910
- package/index.esm.min.js +9 -6
- package/index.min.js +7 -6
- package/package.json +2 -2
|
@@ -1,21 +1,84 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator
|
|
1
|
+
// Generated by dts-bundle-generator v8.0.1
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import { EventEmitter } from 'eventemitter3';
|
|
4
|
+
|
|
5
|
+
declare abstract class ExtensionBase extends EventEmitter {
|
|
6
|
+
abstract name: string;
|
|
7
|
+
abstract type: RTCExtensionType;
|
|
8
|
+
abstract init(engineParams?: any): Promise<void>;
|
|
9
|
+
protected abstract _enable: boolean;
|
|
10
|
+
isOpen(): boolean;
|
|
11
|
+
abstract destroy(): void;
|
|
12
|
+
isSupported(): Promise<boolean>;
|
|
13
|
+
monitor?: any;
|
|
14
|
+
get _reportName(): string;
|
|
15
|
+
}
|
|
16
|
+
declare abstract class PreProcessingExtension extends ExtensionBase {
|
|
17
|
+
type: RTCExtensionType;
|
|
18
|
+
abstract effect(track: ITrack, processTrack: MediaStreamTrack): Promise<MediaStreamTrack>;
|
|
19
|
+
abstract applyConstraints(streamIndex: StreamIndex, constraints: MediaTrackConstraints): void;
|
|
20
|
+
}
|
|
21
|
+
declare class RTCAIAnsExtension extends PreProcessingExtension implements IRTCAIAnsExtension {
|
|
22
|
+
name: string;
|
|
23
|
+
protected _enable: boolean;
|
|
24
|
+
private _worker?;
|
|
25
|
+
applyConstraints(_streamIndex: StreamIndex, _constraints: MediaTrackConstraints): void;
|
|
26
|
+
init(): Promise<void>;
|
|
27
|
+
effect(track: ITrack, processTrack?: MediaStreamTrack): Promise<MediaStreamTrack>;
|
|
28
|
+
enable(): void;
|
|
29
|
+
disable(): void;
|
|
30
|
+
isSupported(): any;
|
|
31
|
+
destroy(): void;
|
|
32
|
+
private _rtcSdkApiCall;
|
|
33
|
+
}
|
|
34
|
+
declare enum RTCExtensionType {
|
|
35
|
+
CAPTURE = 0,
|
|
36
|
+
PRE_PROCESSING = 1,
|
|
37
|
+
ENCODE = 2,
|
|
38
|
+
TRANSFER = 3,
|
|
39
|
+
POST_PROCESSING = 4,
|
|
40
|
+
DECODE = 5,
|
|
41
|
+
RENDERING = 6
|
|
42
|
+
}
|
|
43
|
+
declare enum SourceType {
|
|
44
|
+
EXTERNAL = 0,
|
|
45
|
+
INTERNAL = 1
|
|
46
|
+
}
|
|
47
|
+
declare enum StreamIndex {
|
|
4
48
|
|
|
5
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* @brief A mainstream is a media stream either captured by the internal module or from the custom source.
|
|
51
|
+
*/
|
|
52
|
+
STREAM_INDEX_MAIN = 0,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @brief Screen-sharing stream, including screen-sharing video streams and/ or audio streams from sound cards
|
|
56
|
+
*/
|
|
57
|
+
STREAM_INDEX_SCREEN = 1
|
|
58
|
+
}
|
|
59
|
+
export interface IRTCAIAnsExtension {
|
|
60
|
+
|
|
61
|
+
/**
|
|
6
62
|
* @brief Enables AI noise cancellation.
|
|
7
63
|
* @notes The AI noise cancellation is applicable to internal captured audio.
|
|
8
64
|
*/
|
|
9
65
|
enable: () => void;
|
|
10
66
|
|
|
11
|
-
/**
|
|
67
|
+
/**
|
|
12
68
|
* @brief Disables AI noise cancellation.
|
|
13
69
|
*/
|
|
14
70
|
disable: () => void;
|
|
15
71
|
}
|
|
72
|
+
export interface ITrack {
|
|
73
|
+
sourceType: SourceType;
|
|
74
|
+
mediaType: "audio" | "video";
|
|
75
|
+
mediaTrack: MediaStreamTrack;
|
|
76
|
+
streamIndex: number;
|
|
77
|
+
channelCount: number;
|
|
78
|
+
}
|
|
16
79
|
|
|
17
80
|
export {
|
|
18
|
-
|
|
81
|
+
RTCAIAnsExtension as default,
|
|
19
82
|
};
|
|
20
83
|
|
|
21
84
|
export {};
|