quickvo-sdk-js 1.6.2 → 1.6.3

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
@@ -13,7 +13,7 @@ export declare class QuickVO {
13
13
  event: "onJoinRoom" | "onQuitRoom" | "onBeforeTokenExpire" | "onTokenExpired" | "onDestroyRoom" | "onCDNPlayUrlAdd" | "onRoomUserSpeech" | "onRoomUsers" | "onRoomNetwork" | "onPeerState" | "onRoomState";
14
14
  callback?: (e: any) => void;
15
15
  }) => string;
16
- setOptions: (options: QuickOptions) => void;
16
+ setOptions: (options: Partial<QuickOptions & import('./types').RoomOptions>) => void;
17
17
  getLocalStream: (mediaType: import('./enums/mediaType').K_mediaType) => MediaStream;
18
18
  getLocalStreams: () => {
19
19
  mc_audio: MediaStream;
@@ -39,7 +39,6 @@ export declare class QuickVO {
39
39
  mc_video: string;
40
40
  }>;
41
41
  setCallStrategy: (callStrategy: import('./enums/callStrategy').K_callStrategy, mediaTypes?: import('./enums/mediaType').K_mediaType[]) => Promise<void>;
42
- getReportsByMid: () => never[];
43
42
  setLocalStream: (mediaTypes: import('./enums/mediaType').K_mediaType[], active: boolean) => Promise<unknown>;
44
43
  setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string | undefined) => Promise<unknown>;
45
44
  setMediaTrackConstraints: (mediaType: import('./enums/mediaType').K_mediaType, constraints: MediaTrackConstraints) => Promise<void>;
@@ -120,7 +120,6 @@ export declare class Config {
120
120
  /**
121
121
  * setOptions
122
122
  */
123
- setOptions: (options: QuickOptions) => void;
124
- setRoomOptions: (options: RoomOptions) => void;
123
+ setOptions: (options: Partial<QuickOptions & RoomOptions>) => void;
125
124
  createWsUrl: () => string;
126
125
  }
File without changes
File without changes
@@ -3,7 +3,7 @@ import { PrWebSocket } from 'pr-ws';
3
3
  import { MessageReq, MessageRsp } from '../../../protos/protoEvent';
4
4
  export interface Options {
5
5
  /**
6
- * 超时事件
6
+ * 超时时间 默认10s
7
7
  */
8
8
  timeout?: number;
9
9
  /**
@@ -14,5 +14,9 @@ export declare class PrResolves<T extends string> {
14
14
  * @param timeout 超时时间(ms) 默认 1000 * 30
15
15
  */
16
16
  add: (eventKey: T, checkFun?: Function, timeout?: number) => Promise<unknown>;
17
+ /**
18
+ * 清理所有约定
19
+ */
20
+ clear: () => void;
17
21
  }
18
22
  export {};