quickvo-sdk-js 1.3.2 → 1.4.1
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 +6 -1
- package/dist/enums/iceState.d.ts +16 -0
- package/dist/enums/notifyName.d.ts +9 -2
- package/dist/index.js +20354 -17692
- package/dist/index.umd.cjs +4 -4
- package/dist/protos/compiled.d.ts +1042 -327
- package/dist/room/CallsWebSocket.d.ts +10 -2
- package/dist/room/P2P.d.ts +136 -9
- package/dist/room/PeerAnalyzeStats.d.ts +40 -0
- package/dist/room/PrResolves.d.ts +19 -0
- package/dist/room/RoomBase.d.ts +20 -3
- package/dist/room/RoomCalls.d.ts +70 -32
- package/dist/room/RoomMedias.d.ts +2 -2
- package/dist/room/RoomPeer.d.ts +29 -38
- package/dist/room/RoomUsers.d.ts +24 -8
- package/dist/types.d.ts +25 -5
- package/package.json +4 -3
package/dist/types.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export interface UserTrack {
|
|
|
87
87
|
/**
|
|
88
88
|
* 媒体类型
|
|
89
89
|
*/
|
|
90
|
-
mediaType
|
|
90
|
+
mediaType: K_mediaType;
|
|
91
91
|
/**
|
|
92
92
|
* 相对媒体音量
|
|
93
93
|
*/
|
|
@@ -104,6 +104,8 @@ export interface UserTrack {
|
|
|
104
104
|
* 唯一key 每次轨道变化均会改变
|
|
105
105
|
*/
|
|
106
106
|
key: string;
|
|
107
|
+
origin: 'sfu' | 'p2p';
|
|
108
|
+
lastRetry?: boolean;
|
|
107
109
|
}
|
|
108
110
|
/**
|
|
109
111
|
* 数据通道
|
|
@@ -126,6 +128,7 @@ export type Event = {
|
|
|
126
128
|
* 当前事件的发送的消息
|
|
127
129
|
*/
|
|
128
130
|
message: Message;
|
|
131
|
+
send: Function;
|
|
129
132
|
/**
|
|
130
133
|
* 当前事件的成功回调
|
|
131
134
|
* @param msg 事件完整消息
|
|
@@ -238,16 +241,16 @@ export interface RoomUser {
|
|
|
238
241
|
* 用户轨道
|
|
239
242
|
*/
|
|
240
243
|
tracks: UserTrack[];
|
|
241
|
-
/**
|
|
242
|
-
* 用户数据通道
|
|
243
|
-
*/
|
|
244
|
-
channels: Channel[];
|
|
245
244
|
/**
|
|
246
245
|
* 是否更新了流
|
|
247
246
|
*/
|
|
248
247
|
updateStreams: {
|
|
249
248
|
[key in K_mediaType]: boolean;
|
|
250
249
|
};
|
|
250
|
+
/**
|
|
251
|
+
* 是否使用P2P
|
|
252
|
+
*/
|
|
253
|
+
useP2P: boolean;
|
|
251
254
|
/**
|
|
252
255
|
* 数据更新时间
|
|
253
256
|
*/
|
|
@@ -285,3 +288,20 @@ export interface UserAudioFilterOptions {
|
|
|
285
288
|
echoCancellation: boolean;
|
|
286
289
|
}
|
|
287
290
|
export type Report_Log_Type = 'ws_c_timeout' | 'webrtc_c_timeout' | 'join_room_error' | 'publish_error' | 'subscribe_error' | 'close_track_error' | 'heartbeat_e_timeout' | 'heartbeat_i_timeout' | 'quit_room_error';
|
|
291
|
+
export interface UserMediaTypes {
|
|
292
|
+
userId: string;
|
|
293
|
+
mediaTypes: K_mediaType[];
|
|
294
|
+
}
|
|
295
|
+
export interface UserTracks {
|
|
296
|
+
id: string;
|
|
297
|
+
tracks: UserTrack[];
|
|
298
|
+
}
|
|
299
|
+
export interface SubscribeRes {
|
|
300
|
+
code: number;
|
|
301
|
+
msg: string;
|
|
302
|
+
expectation_num: number;
|
|
303
|
+
success_num: number;
|
|
304
|
+
success_users: UserTracks[];
|
|
305
|
+
fail_users: UserTracks[];
|
|
306
|
+
retry_users: UserTracks[];
|
|
307
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickvo-sdk-js",
|
|
3
3
|
"description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
"pako": "^2.1.0",
|
|
23
23
|
"pr-async-queue": "^0.1.3",
|
|
24
24
|
"pr-audio-stream": "^0.1.1",
|
|
25
|
-
"pr-
|
|
26
|
-
"pr-
|
|
25
|
+
"pr-nat-type": "^0.1.2",
|
|
26
|
+
"pr-tools": "^1.6.0",
|
|
27
|
+
"pr-ws": "^0.3.3",
|
|
27
28
|
"sdp-transform": "^2.15.0",
|
|
28
29
|
"webm-duration-fix": "^1.0.4"
|
|
29
30
|
},
|