@byteplus/rtc 4.60.0 → 4.60.2-ewy.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.
@@ -1,61 +1,5 @@
1
1
  // Generated by dts-bundle-generator v8.0.1
2
2
 
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 {
48
-
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
3
  export interface IRTCAIAnsExtension {
60
4
 
61
5
  /**
@@ -69,16 +13,9 @@ export interface IRTCAIAnsExtension {
69
13
  */
70
14
  disable: () => void;
71
15
  }
72
- export interface ITrack {
73
- sourceType: SourceType;
74
- mediaType: "audio" | "video";
75
- mediaTrack: MediaStreamTrack;
76
- streamIndex: number;
77
- channelCount: number;
78
- }
79
16
 
80
17
  export {
81
- RTCAIAnsExtension as default,
18
+ IRTCAIAnsExtension as default,
82
19
  };
83
20
 
84
21
  export {};