quickvo-sdk-js 1.6.10 → 1.6.12

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/QuickVO.d.ts CHANGED
@@ -6,6 +6,9 @@ export declare class QuickVO {
6
6
  private _ACTION_P2P;
7
7
  constructor(options: QuickOptions);
8
8
  recorder: import('./base/modules/StreamRecorder').StreamRecorder;
9
+ use: ({ rnnoise }: {
10
+ rnnoise?: import('./base/Base').PrRnnoise;
11
+ }) => void;
9
12
  addRequestAnimationFrame: (key: string, func: FrameRequestCallback) => Promise<void>;
10
13
  clearRequestAnimationFrame: (keys?: string[]) => Promise<number[]>;
11
14
  addNotify: (notify: {
@@ -11,6 +11,13 @@ import { PrAsyncQueue } from 'pr-async-queue';
11
11
  import { K_roomState } from '../enums/roomState';
12
12
  import { K_mediaType } from '../enums/mediaType';
13
13
  type Report_Log_Type = 'ws_c_timeout' | 'webrtc_c_timeout' | 'join_room_error' | 'publish_error' | 'subscribe_error' | 'close_track_error' | 'heartbeat_e_timeout' | 'heartbeat_i_timeout' | 'quit_room_error';
14
+ interface RnnoiseWorkletInstance {
15
+ createRnnoiseWorkletNode: (audioContext: AudioContext) => Promise<AudioWorkletNode>;
16
+ destroy: () => void;
17
+ }
18
+ export interface PrRnnoise {
19
+ RnnoiseWorklet: new () => RnnoiseWorkletInstance;
20
+ }
14
21
  export declare class Base {
15
22
  config: Config;
16
23
  notifys: Notifys;
@@ -24,6 +31,12 @@ export declare class Base {
24
31
  peer: Peer;
25
32
  private _requestAnimationFrameMap;
26
33
  constructor();
34
+ /**
35
+ * 使用插件
36
+ */
37
+ use: ({ rnnoise }: {
38
+ rnnoise?: PrRnnoise;
39
+ }) => void;
27
40
  setRoomState: (state: K_roomState) => void;
28
41
  setPeerState: (state: RTCPeerConnectionState) => void;
29
42
  /**