quickvo-sdk-js 1.5.6 → 1.5.9
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 +2 -1
- package/dist/enums/notifyName.d.ts +2 -1
- package/dist/index.js +21049 -20633
- package/dist/index.umd.cjs +3 -3
- package/dist/protos/compiled.d.ts +7248 -6986
- package/dist/room/P2P.d.ts +4 -0
- package/dist/room/RoomBase.d.ts +6 -0
- package/dist/room/RoomCalls.d.ts +8 -4
- package/dist/types.d.ts +17 -0
- 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>;
|
|
@@ -84,8 +84,8 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
84
84
|
* @param pause boolean
|
|
85
85
|
* @example quickvo.pauseTracks(['microphoneCamera_audio'], true)
|
|
86
86
|
*/
|
|
87
|
-
pauseTracks: (mediaTypes: K_mediaType[], pause: boolean) => Promise<
|
|
88
|
-
inactiveTracks: (mediaTypes: K_mediaType[], enabled: boolean) => Promise<
|
|
87
|
+
pauseTracks: (mediaTypes: K_mediaType[], pause: boolean) => Promise<unknown>;
|
|
88
|
+
inactiveTracks: (mediaTypes: K_mediaType[], enabled: boolean) => Promise<unknown>;
|
|
89
89
|
/**
|
|
90
90
|
* subscribe
|
|
91
91
|
* @param userMediaTypes: UserMediaTypes[] = []
|
|
@@ -115,6 +115,10 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
115
115
|
* debugger
|
|
116
116
|
*/
|
|
117
117
|
debugger: () => Promise<import('..').SendMessageRevolve<any>>;
|
|
118
|
+
/**
|
|
119
|
+
* ai
|
|
120
|
+
*/
|
|
121
|
+
ai: () => Promise<import('..').SendMessageRevolve<any>>;
|
|
118
122
|
/**
|
|
119
123
|
* shutdown
|
|
120
124
|
*/
|
|
@@ -151,7 +155,7 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
151
155
|
/**
|
|
152
156
|
* open
|
|
153
157
|
*/
|
|
154
|
-
open: (remoteUserId: string,
|
|
158
|
+
open: (remoteUserId: string, mediaType?: K_mediaType) => Promise<unknown>;
|
|
155
159
|
/**
|
|
156
160
|
* replaceSenderStreams
|
|
157
161
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -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内部是否自动发起订阅并输出最终媒体流
|