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.
- package/dist/enums/eventName.d.ts +1 -1
- package/dist/enums/notifyName.d.ts +2 -2
- package/dist/index.js +20956 -21242
- package/dist/index.umd.cjs +3 -3
- package/dist/protos/compiled.d.ts +398 -578
- package/dist/room/P2P.d.ts +4 -0
- package/dist/room/RoomBase.d.ts +6 -0
- package/dist/room/RoomCalls.d.ts +9 -3
- package/dist/room/RoomUsers.d.ts +4 -1
- package/dist/types.d.ts +19 -2
- package/package.json +1 -1
package/dist/room/P2P.d.ts
CHANGED
package/dist/room/RoomBase.d.ts
CHANGED
|
@@ -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;
|
package/dist/room/RoomCalls.d.ts
CHANGED
|
@@ -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']
|
|
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
|
|
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: (
|
|
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
|
*/
|
package/dist/room/RoomUsers.d.ts
CHANGED
|
@@ -116,7 +116,10 @@ export declare class RoomUsers extends RoomMedias {
|
|
|
116
116
|
/**
|
|
117
117
|
* checkSubscribed
|
|
118
118
|
*/
|
|
119
|
-
checkSubscribed: (remoteUserId: string,
|
|
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:
|
|
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内部是否自动发起订阅并输出最终媒体流
|