quickvo-sdk-js 1.5.7 → 1.5.10

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.
@@ -88,6 +88,10 @@ export declare class P2P {
88
88
  * candidateCollected
89
89
  */
90
90
  candidateCollected: () => Promise<unknown>;
91
+ /**
92
+ * remoteChannelConnected
93
+ */
94
+ remoteChannelConnected: () => Promise<unknown>;
91
95
  /**
92
96
  * iceConnected
93
97
  */
@@ -53,6 +53,7 @@ export declare class RoomBase {
53
53
  * reportLogs
54
54
  */
55
55
  reportLogs: (_type: Report_Log_Type, describe?: string) => void;
56
+ stopPhoneyStreams: (mediaTypes?: K_mediaType[]) => void;
56
57
  initPhoneyStreams: (audioContext: AudioContext, mediaTypes?: K_mediaType[]) => void;
57
58
  getPhoneyStreams: (mediaType: K_mediaType) => MediaStream;
58
59
  /**
@@ -72,6 +73,11 @@ export declare class RoomBase {
72
73
  roomId: string;
73
74
  userId: string;
74
75
  callType: number;
76
+ stt?: boolean;
77
+ lang?: {
78
+ input?: string;
79
+ output?: string;
80
+ };
75
81
  newPublishAutoSubscribe?: boolean;
76
82
  timeout?: number;
77
83
  earlyId?: string;
@@ -67,7 +67,7 @@ export declare class RoomCalls extends RoomPeer {
67
67
  /**
68
68
  * 发布流
69
69
  * @param mediaTypes MediaType[]
70
- * @example quickvo.publish(['microphoneCamera_audio', 'microphoneCamera_video'], 3)
70
+ * @example quickvo.publish(['microphoneCamera_audio', 'microphoneCamera_video'])
71
71
  * @returns Promise<boolean>
72
72
  */
73
73
  publish: (mediaTypes: K_mediaType[]) => Promise<boolean>;
@@ -155,7 +155,7 @@ export declare class RoomCalls extends RoomPeer {
155
155
  /**
156
156
  * open
157
157
  */
158
- open: (remoteUserId: string, mediaTypes?: 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
  */
@@ -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
  * 房间用户
@@ -294,6 +294,23 @@ export interface RoomOptions {
294
294
  * @enum 2 直播通话类型(间创建者默认拥有推拉流权限,其他加入者默认拥有订阅权限)
295
295
  */
296
296
  callType: number;
297
+ /**
298
+ * 是否开启语音识别
299
+ */
300
+ stt?: boolean;
301
+ /**
302
+ * 语音识别 语音设置
303
+ */
304
+ lang?: {
305
+ /**
306
+ * 输入
307
+ */
308
+ input?: string;
309
+ /**
310
+ * 输出
311
+ */
312
+ output?: string;
313
+ };
297
314
  /**
298
315
  * 新流自动订阅 (默认为true 当房间存在大量用户流多需要分页订阅时则使用false)
299
316
  * 用于控制当监听到新媒体轨道发布时 sdk内部是否自动发起订阅并输出最终媒体流
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickvo-sdk-js",
3
3
  "description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
4
- "version": "1.5.7",
4
+ "version": "1.5.10",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"