quickvo-sdk-js 1.5.9 → 1.5.11

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.
@@ -155,7 +155,7 @@ export declare class RoomCalls extends RoomPeer {
155
155
  /**
156
156
  * open
157
157
  */
158
- open: (remoteUserId: string, mediaType?: K_mediaType) => Promise<unknown>;
158
+ open: (remoteUserId: string, mediaTypes: K_mediaType[]) => Promise<unknown>;
159
159
  /**
160
160
  * replaceSenderStreams
161
161
  */
@@ -169,7 +169,13 @@ export declare class RoomCalls extends RoomPeer {
169
169
  /**
170
170
  * reportP2PConnect
171
171
  */
172
- reportP2PConnect: (recvUserId: string, sendUserId: string, state: "success" | "fail" | "ignore" | "disconnect" | "poor_network", reason?: string, pushUserIds?: string[], connectedTime?: number) => Promise<import('..').SendMessageRevolve<any>>;
172
+ reportP2PConnect: (state: "success" | "fail" | "ignore" | "disconnect" | "poor_network", data: {
173
+ pullId: string;
174
+ pushId: string;
175
+ mediaTypes: K_mediaType[];
176
+ desc?: string;
177
+ connectedTime?: string;
178
+ }) => Promise<import('..').SendMessageRevolve<any>>;
173
179
  /**
174
180
  * close
175
181
  */
@@ -27,7 +27,7 @@ export declare class RoomMedias extends RoomBase {
27
27
  /**
28
28
  * initUserMediaStreamContext
29
29
  */
30
- initUserMediaStreamContext: (userId: string, mediaType: K_mediaType, stream: MediaStream, clear: boolean) => Promise<void>;
30
+ initUserMediaStreamContext: (userId: string, mediaType: K_mediaType, track: MediaStreamTrack) => Promise<void>;
31
31
  /**
32
32
  * getUserMediaStreamContext
33
33
  */
@@ -116,7 +116,10 @@ export declare class RoomUsers extends RoomMedias {
116
116
  /**
117
117
  * checkSubscribed
118
118
  */
119
- checkSubscribed: (remoteUserId: string, mediaType: K_mediaType) => Promise<boolean>;
119
+ checkSubscribed: (remoteUserId: string, mediaTypes: K_mediaType[]) => Promise<{
120
+ subscribed_mediaTypes: ("microphoneCamera_audio" | "microphoneCamera_video" | "screenSharing_video" | "screenSharing_audio")[];
121
+ prohibited_mediaTypes: ("microphoneCamera_audio" | "microphoneCamera_video" | "screenSharing_video" | "screenSharing_audio")[];
122
+ }>;
120
123
  /**
121
124
  * createUserTrackByUserMediaTypes
122
125
  */
package/dist/types.d.ts CHANGED
@@ -190,10 +190,10 @@ export type Notify = {
190
190
  /**
191
191
  * 自定义回调函数
192
192
  */
193
- callback?: (e: SendMessageRevolve) => void;
193
+ callback?: (e: any) => Promise<void>;
194
194
  };
195
195
  export type NotifyQueue = {
196
- [event: string]: Notify[];
196
+ [event: string]: Map<string, Notify>;
197
197
  };
198
198
  /**
199
199
  * 房间用户
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickvo-sdk-js",
3
3
  "description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
4
- "version": "1.5.9",
4
+ "version": "1.5.11",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"