quickvo-sdk-js 1.6.55 → 1.6.56
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/package.json +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -26189
- package/dist/index.umd.cjs +0 -4
- package/dist/src/QuickVO.d.ts +0 -86
- package/dist/src/action/ActionBase.d.ts +0 -10
- package/dist/src/action/ActionP2P.d.ts +0 -14
- package/dist/src/action/ActionSFU.d.ts +0 -133
- package/dist/src/base/Base.d.ts +0 -59
- package/dist/src/base/modules/AnimationFrame.d.ts +0 -22
- package/dist/src/base/modules/Config.d.ts +0 -130
- package/dist/src/base/modules/LocalMedias.d.ts +0 -96
- package/dist/src/base/modules/Notifys.d.ts +0 -41
- package/dist/src/base/modules/Peer.d.ts +0 -48
- package/dist/src/base/modules/PrResolves.d.ts +0 -23
- package/dist/src/base/modules/StreamRecorder.d.ts +0 -40
- package/dist/src/base/modules/Traffic.d.ts +0 -21
- package/dist/src/base/modules/cws/CallsWebSocket.d.ts +0 -48
- package/dist/src/base/modules/cws/CallsWebSocketEvent.d.ts +0 -36
- package/dist/src/base/modules/cws/PrWebSocket.d.ts +0 -49
- package/dist/src/base/modules/cws/filterData.d.ts +0 -17
- package/dist/src/base/modules/users/Users.d.ts +0 -203
- package/dist/src/base/modules/users/modules/LocalTrackAnalysis.d.ts +0 -20
- package/dist/src/base/modules/users/modules/LocalUser.d.ts +0 -33
- package/dist/src/base/modules/users/modules/RemotePeerTrackAnalysis.d.ts +0 -20
- package/dist/src/base/modules/users/modules/RemoteUser.d.ts +0 -75
- package/dist/src/base/modules/users/modules/RemoteUserP2P.d.ts +0 -87
- package/dist/src/base/modules/users/modules/UserBase.d.ts +0 -173
- package/dist/src/enums/callStrategy.d.ts +0 -14
- package/dist/src/enums/eventName.d.ts +0 -38
- package/dist/src/enums/index.d.ts +0 -7
- package/dist/src/enums/mediaType.d.ts +0 -15
- package/dist/src/enums/notifyName.d.ts +0 -30
- package/dist/src/enums/quality.d.ts +0 -17
- package/dist/src/enums/roomState.d.ts +0 -17
- package/dist/src/enums/trackType.d.ts +0 -15
- package/dist/src/index.d.ts +0 -3
- package/dist/src/protos/compiled.d.ts +0 -7175
- package/dist/src/protos/index.d.ts +0 -1
- package/dist/src/protos/protoEvent.d.ts +0 -196
- package/dist/src/tools.d.ts +0 -5
- package/dist/src/types.d.ts +0 -278
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './compiled';
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { K_eventName } from '../enums/eventName';
|
|
2
|
-
import * as protos from './index';
|
|
3
|
-
export type EventDataReqs = {
|
|
4
|
-
heartbeat: protos.com.quick.voice.proto.IReportTrafficUsage;
|
|
5
|
-
heartbeatEx: protos.com.quick.voice.proto.IReportTrafficUsage;
|
|
6
|
-
ackMsg: protos.com.quick.voice.proto.IAckMsgReq;
|
|
7
|
-
reportNetwork: protos.com.quick.voice.proto.IReportNetInfo;
|
|
8
|
-
connectCF: protos.com.quick.voice.proto.IConnectCFReq;
|
|
9
|
-
publish: protos.com.quick.voice.proto.IPublishReq;
|
|
10
|
-
joinRoom: protos.com.quick.voice.proto.IJoinReq;
|
|
11
|
-
joinRoomEx: protos.com.quick.voice.proto.IJoinReq;
|
|
12
|
-
pubNotify: protos.com.quick.voice.proto.IPublishNotify;
|
|
13
|
-
subscribe: protos.com.quick.voice.proto.ISubscribeReq;
|
|
14
|
-
renegotiate: protos.com.quick.voice.proto.IRenegotiateReq;
|
|
15
|
-
closeTrack: protos.com.quick.voice.proto.ICloseTrackReq;
|
|
16
|
-
preventUsersBehavior: protos.com.quick.voice.proto.IPreventUsersBehaviorReq;
|
|
17
|
-
networkQualityChange: protos.com.quick.voice.proto.INetQualityChange;
|
|
18
|
-
updateCall: protos.com.quick.voice.proto.IUpdateCall;
|
|
19
|
-
toggleRoomSpeechLang: protos.com.quick.voice.proto.IAiLangSetting;
|
|
20
|
-
syncRoomInfo: protos.com.quick.voice.proto.ISyncRoomInfoReq;
|
|
21
|
-
updateRoomToken: protos.com.quick.voice.proto.IUpdateTokenReq;
|
|
22
|
-
offer: protos.com.quick.voice.proto.ISdpConsult;
|
|
23
|
-
answer: protos.com.quick.voice.proto.ISdpConsult;
|
|
24
|
-
candidate: protos.com.quick.voice.proto.ICandidates;
|
|
25
|
-
reportP2PConnectEx: protos.com.quick.voice.proto.IReportP2PExReq;
|
|
26
|
-
quitRoom: protos.com.quick.voice.proto.IQuitReq;
|
|
27
|
-
quitRoomEx: protos.com.quick.voice.proto.IQuitReq;
|
|
28
|
-
debugger: any;
|
|
29
|
-
ai: any;
|
|
30
|
-
UpdateTrackActive: protos.com.quick.voice.proto.IUpdateTrackState;
|
|
31
|
-
};
|
|
32
|
-
export type EventDataRsp = {
|
|
33
|
-
heartbeat: any;
|
|
34
|
-
heartbeatEx: any;
|
|
35
|
-
ackMsg: any;
|
|
36
|
-
reportNetwork: any;
|
|
37
|
-
connectCF: protos.com.quick.voice.proto.IConnectCFRsp;
|
|
38
|
-
publish: protos.com.quick.voice.proto.IPublishRsp;
|
|
39
|
-
joinRoom: protos.com.quick.voice.proto.IJoinRsp;
|
|
40
|
-
joinRoomEx: protos.com.quick.voice.proto.IJoinRsp;
|
|
41
|
-
pubNotify: any;
|
|
42
|
-
subscribe: protos.com.quick.voice.proto.ISubscribeRsp;
|
|
43
|
-
renegotiate: any;
|
|
44
|
-
closeTrack: protos.com.quick.voice.proto.ICloseTrackRsp;
|
|
45
|
-
preventUsersBehavior: any;
|
|
46
|
-
networkQualityChange: any;
|
|
47
|
-
updateCall: any;
|
|
48
|
-
toggleRoomSpeechLang: any;
|
|
49
|
-
syncRoomInfo: protos.com.quick.voice.proto.ISyncRoomInfoRsp;
|
|
50
|
-
updateRoomToken: any;
|
|
51
|
-
offer: any;
|
|
52
|
-
answer: any;
|
|
53
|
-
candidate: any;
|
|
54
|
-
reportP2PConnectEx: any;
|
|
55
|
-
quitRoom: any;
|
|
56
|
-
quitRoomEx: any;
|
|
57
|
-
ai: any;
|
|
58
|
-
debugger: any;
|
|
59
|
-
UpdateTrackActive: protos.com.quick.voice.proto.IUpdateTrackState;
|
|
60
|
-
};
|
|
61
|
-
export interface MessageReq<T extends K_eventName> {
|
|
62
|
-
/**
|
|
63
|
-
* 事件名称
|
|
64
|
-
*/
|
|
65
|
-
event: T;
|
|
66
|
-
/**
|
|
67
|
-
* 事件数据
|
|
68
|
-
*/
|
|
69
|
-
data: EventDataReqs[T];
|
|
70
|
-
/**
|
|
71
|
-
* 请求时间戳
|
|
72
|
-
*/
|
|
73
|
-
time?: number;
|
|
74
|
-
/**
|
|
75
|
-
* 格式化时间戳
|
|
76
|
-
*/
|
|
77
|
-
timeStr?: string;
|
|
78
|
-
/**
|
|
79
|
-
* 唯一标识
|
|
80
|
-
*/
|
|
81
|
-
sn?: number;
|
|
82
|
-
/**
|
|
83
|
-
* 是否压缩数据
|
|
84
|
-
*/
|
|
85
|
-
compress?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* 有效时长
|
|
88
|
-
*/
|
|
89
|
-
valid?: number;
|
|
90
|
-
/**
|
|
91
|
-
* 接口版本
|
|
92
|
-
*/
|
|
93
|
-
version?: number;
|
|
94
|
-
}
|
|
95
|
-
export interface MessageRsp<T extends K_eventName> {
|
|
96
|
-
code: number;
|
|
97
|
-
desc: string;
|
|
98
|
-
/**
|
|
99
|
-
* 事件名称
|
|
100
|
-
*/
|
|
101
|
-
event: T;
|
|
102
|
-
/**
|
|
103
|
-
* 事件数据
|
|
104
|
-
*/
|
|
105
|
-
data: EventDataRsp[T];
|
|
106
|
-
/**
|
|
107
|
-
* 请求时间戳
|
|
108
|
-
*/
|
|
109
|
-
time: number;
|
|
110
|
-
/**
|
|
111
|
-
* 格式化时间戳
|
|
112
|
-
*/
|
|
113
|
-
timeStr: string;
|
|
114
|
-
/**
|
|
115
|
-
* 唯一标识
|
|
116
|
-
*/
|
|
117
|
-
sn: number;
|
|
118
|
-
/**
|
|
119
|
-
* 是否压缩数据
|
|
120
|
-
*/
|
|
121
|
-
compress: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* 有效时长
|
|
124
|
-
*/
|
|
125
|
-
valid: number;
|
|
126
|
-
/**
|
|
127
|
-
* 接口版本
|
|
128
|
-
*/
|
|
129
|
-
version: number;
|
|
130
|
-
}
|
|
131
|
-
export interface SendMessageFormat<T extends K_eventName> {
|
|
132
|
-
/**
|
|
133
|
-
* 事件名称
|
|
134
|
-
*/
|
|
135
|
-
event: T;
|
|
136
|
-
/**
|
|
137
|
-
* 原始事件数据
|
|
138
|
-
*/
|
|
139
|
-
data: EventDataReqs[T];
|
|
140
|
-
/**
|
|
141
|
-
* 请求时间戳
|
|
142
|
-
*/
|
|
143
|
-
time: number;
|
|
144
|
-
/**
|
|
145
|
-
* 格式化时间戳
|
|
146
|
-
*/
|
|
147
|
-
timeStr?: string;
|
|
148
|
-
/**
|
|
149
|
-
* 唯一标识
|
|
150
|
-
*/
|
|
151
|
-
sn: number;
|
|
152
|
-
/**
|
|
153
|
-
* 是否压缩数据
|
|
154
|
-
*/
|
|
155
|
-
compress: boolean;
|
|
156
|
-
/**
|
|
157
|
-
* 有效时长
|
|
158
|
-
*/
|
|
159
|
-
valid: number;
|
|
160
|
-
/**
|
|
161
|
-
* 接口版本
|
|
162
|
-
*/
|
|
163
|
-
version: number;
|
|
164
|
-
}
|
|
165
|
-
export declare const sendMessageFormat: <T extends K_eventName>(message: SendMessageFormat<T>) => {
|
|
166
|
-
timeStr: string;
|
|
167
|
-
data_original: EventDataReqs[T];
|
|
168
|
-
data: Uint8Array<any> | undefined;
|
|
169
|
-
/**
|
|
170
|
-
* 事件名称
|
|
171
|
-
*/
|
|
172
|
-
event: T;
|
|
173
|
-
/**
|
|
174
|
-
* 请求时间戳
|
|
175
|
-
*/
|
|
176
|
-
time: number;
|
|
177
|
-
/**
|
|
178
|
-
* 唯一标识
|
|
179
|
-
*/
|
|
180
|
-
sn: number;
|
|
181
|
-
/**
|
|
182
|
-
* 是否压缩数据
|
|
183
|
-
*/
|
|
184
|
-
compress: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* 有效时长
|
|
187
|
-
*/
|
|
188
|
-
valid: number;
|
|
189
|
-
/**
|
|
190
|
-
* 接口版本
|
|
191
|
-
*/
|
|
192
|
-
version: number;
|
|
193
|
-
};
|
|
194
|
-
export declare const onMessageFormat: (message: any) => any;
|
|
195
|
-
export declare const obj2pb: (message: protos.com.quick.voice.proto.ICommonReq) => Uint8Array<ArrayBufferLike>;
|
|
196
|
-
export declare const pb2obj: (uint8Array: Uint8Array) => protos.com.quick.voice.proto.CommonRsp;
|
package/dist/src/tools.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const isMobile: () => boolean;
|
|
2
|
-
export declare const getNetworkQuality: (lostRate: number, roundTripTime: number, jitter: number) => 1 | 2 | 3 | 4 | 5;
|
|
3
|
-
export declare const availableWeight: number[];
|
|
4
|
-
export declare const estimateDataByResolution: (width: number, height: number) => number;
|
|
5
|
-
export declare const sortByMimeTypes: (codecs: RTCRtpCodec[], preferredOrder: string[]) => RTCRtpCodec[];
|
package/dist/src/types.d.ts
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { K_notifyName } from './enums/notifyName';
|
|
2
|
-
import { K_mediaType } from './enums/mediaType';
|
|
3
|
-
import { K_callStrategy } from './enums/callStrategy';
|
|
4
|
-
export interface QuickOptions {
|
|
5
|
-
/**
|
|
6
|
-
* 应用ID
|
|
7
|
-
*/
|
|
8
|
-
appid: string;
|
|
9
|
-
/**
|
|
10
|
-
* websocket服务地址
|
|
11
|
-
*/
|
|
12
|
-
url?: string;
|
|
13
|
-
/**
|
|
14
|
-
* 日志上报地址
|
|
15
|
-
*/
|
|
16
|
-
logUrl?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 开启后会在控制台显示相关操作日志 默认为false
|
|
19
|
-
*/
|
|
20
|
-
debug?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* 是否上报错误 默认为true
|
|
23
|
-
*/
|
|
24
|
-
reportErr?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* 是否开启p2p功能 默认为true
|
|
27
|
-
*/
|
|
28
|
-
useP2P?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* 通话策略
|
|
31
|
-
*/
|
|
32
|
-
callStrategy?: K_callStrategy;
|
|
33
|
-
}
|
|
34
|
-
export interface RoomOptions {
|
|
35
|
-
/**
|
|
36
|
-
* 房间授权凭证 仅当前房间内操作有效 可以不传跳过验证
|
|
37
|
-
*/
|
|
38
|
-
sdkToken?: string;
|
|
39
|
-
/**
|
|
40
|
-
* 房间Id
|
|
41
|
-
*/
|
|
42
|
-
roomId: string;
|
|
43
|
-
/**
|
|
44
|
-
* 访问者ID 进入房间的人
|
|
45
|
-
*/
|
|
46
|
-
userId: string;
|
|
47
|
-
/**
|
|
48
|
-
* 会话类型
|
|
49
|
-
* @enum 0 普通通话类型(默认有推拉流权限)
|
|
50
|
-
* @enum 1 会议通话类型(默认有推拉流权限)
|
|
51
|
-
* @enum 2 直播通话类型(间创建者默认拥有推拉流权限,其他加入者默认拥有订阅权限)
|
|
52
|
-
*/
|
|
53
|
-
callType: number;
|
|
54
|
-
/**
|
|
55
|
-
* 是否开启语音识别
|
|
56
|
-
*/
|
|
57
|
-
stt?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* 语音识别 语音设置
|
|
60
|
-
*/
|
|
61
|
-
lang?: {
|
|
62
|
-
/**
|
|
63
|
-
* 输入
|
|
64
|
-
*/
|
|
65
|
-
input?: string;
|
|
66
|
-
/**
|
|
67
|
-
* 输出
|
|
68
|
-
*/
|
|
69
|
-
output?: string;
|
|
70
|
-
/**
|
|
71
|
-
* 是否开启语音翻译
|
|
72
|
-
*/
|
|
73
|
-
translateEnable?: boolean;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* 新流自动订阅 (默认为true 当房间存在大量用户流多需要分页订阅时则使用false)
|
|
77
|
-
* 用于控制当监听到新媒体轨道发布时 sdk内部是否自动发起订阅并输出最终媒体流
|
|
78
|
-
*/
|
|
79
|
-
newPublishAutoSubscribe?: boolean;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* 用户轨道
|
|
83
|
-
*/
|
|
84
|
-
export interface UserTrack {
|
|
85
|
-
/**
|
|
86
|
-
* 协商媒体位置
|
|
87
|
-
*/
|
|
88
|
-
location: string;
|
|
89
|
-
/**
|
|
90
|
-
* 协商媒体ID
|
|
91
|
-
*/
|
|
92
|
-
mid: string | null;
|
|
93
|
-
/**
|
|
94
|
-
* 远程协商媒体ID
|
|
95
|
-
*/
|
|
96
|
-
msid?: string | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* 轨道名称
|
|
99
|
-
*/
|
|
100
|
-
trackName: string;
|
|
101
|
-
/**
|
|
102
|
-
* 发送者ID
|
|
103
|
-
*/
|
|
104
|
-
userId?: string;
|
|
105
|
-
/**
|
|
106
|
-
* 轨道类型 0 1 2 3
|
|
107
|
-
*/
|
|
108
|
-
type: number;
|
|
109
|
-
/**
|
|
110
|
-
* 媒体类型
|
|
111
|
-
*/
|
|
112
|
-
mediaType: K_mediaType;
|
|
113
|
-
/**
|
|
114
|
-
* 是否开启该轨道
|
|
115
|
-
*/
|
|
116
|
-
enabled?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* 数据来源
|
|
119
|
-
*/
|
|
120
|
-
origin: 'unknown' | 'phoney' | 'local' | 'sfu' | 'p2p';
|
|
121
|
-
/**
|
|
122
|
-
* 传输质量(video有效)
|
|
123
|
-
*/
|
|
124
|
-
simulcast?: 'f' | 'h' | 'q';
|
|
125
|
-
/**
|
|
126
|
-
* 是否声明最后一次订阅
|
|
127
|
-
*/
|
|
128
|
-
lastRetry?: boolean;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* 广播
|
|
132
|
-
*/
|
|
133
|
-
export type Notify = {
|
|
134
|
-
/**
|
|
135
|
-
* 事件随机码
|
|
136
|
-
*/
|
|
137
|
-
sn?: string;
|
|
138
|
-
/**
|
|
139
|
-
* 事件名称 支持同一事件名称在多个地方注册
|
|
140
|
-
*/
|
|
141
|
-
event: K_notifyName;
|
|
142
|
-
/**
|
|
143
|
-
* 自定义回调函数
|
|
144
|
-
*/
|
|
145
|
-
callback?: (e: any) => void;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* 房间用户
|
|
149
|
-
*/
|
|
150
|
-
export interface RoomUser {
|
|
151
|
-
id: string;
|
|
152
|
-
/**
|
|
153
|
-
* 通话状态
|
|
154
|
-
*/
|
|
155
|
-
callAction: number;
|
|
156
|
-
callActionStr: string;
|
|
157
|
-
callActionMap: {
|
|
158
|
-
[key in K_mediaType]: boolean;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* 禁止行为
|
|
162
|
-
*/
|
|
163
|
-
banBehavior: number;
|
|
164
|
-
banBehaviorStr: string;
|
|
165
|
-
banBehaviorMap: {
|
|
166
|
-
[key in K_mediaType]: boolean;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* 通话行为
|
|
170
|
-
*/
|
|
171
|
-
callState: number;
|
|
172
|
-
/**
|
|
173
|
-
* 权限
|
|
174
|
-
*/
|
|
175
|
-
permissions: number;
|
|
176
|
-
/**
|
|
177
|
-
* 加入时间
|
|
178
|
-
*/
|
|
179
|
-
joinTime: number;
|
|
180
|
-
/**
|
|
181
|
-
* 是否为房间所有者
|
|
182
|
-
*/
|
|
183
|
-
isOwner: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* 是否为自己
|
|
186
|
-
*/
|
|
187
|
-
isSelf: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* 是否发布成功
|
|
190
|
-
*/
|
|
191
|
-
isPublished: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* 网络情况
|
|
194
|
-
*/
|
|
195
|
-
network: {
|
|
196
|
-
/**
|
|
197
|
-
* 上行网络质量 quality 的值 0 - 5
|
|
198
|
-
* 0为未知 值越大网络越好
|
|
199
|
-
*/
|
|
200
|
-
egress: number;
|
|
201
|
-
/**
|
|
202
|
-
* 下行网络质量 quality 的值 0 - 5
|
|
203
|
-
* 0为未知 值越大网络越好
|
|
204
|
-
*/
|
|
205
|
-
ingress: number;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* 用户轨道
|
|
209
|
-
*/
|
|
210
|
-
tracks: UserTrack[];
|
|
211
|
-
/**
|
|
212
|
-
* 数据更新时间
|
|
213
|
-
*/
|
|
214
|
-
updateAt: number;
|
|
215
|
-
}
|
|
216
|
-
export interface UserMediaTypes {
|
|
217
|
-
userId: string;
|
|
218
|
-
mediaTypes: K_mediaType[];
|
|
219
|
-
}
|
|
220
|
-
export interface UserTracks {
|
|
221
|
-
id: string;
|
|
222
|
-
tracks: UserTrack[];
|
|
223
|
-
}
|
|
224
|
-
export interface SubscribeRes {
|
|
225
|
-
code: number;
|
|
226
|
-
msg: string;
|
|
227
|
-
expectation_num: number;
|
|
228
|
-
success_num: number;
|
|
229
|
-
success_users: UserTracks[];
|
|
230
|
-
fail_users: UserTracks[];
|
|
231
|
-
retry_users: UserTracks[];
|
|
232
|
-
}
|
|
233
|
-
export interface ReportInfo {
|
|
234
|
-
type: string;
|
|
235
|
-
timestamp: number;
|
|
236
|
-
bytesSent: number;
|
|
237
|
-
bytesReceived: number;
|
|
238
|
-
packetsSent: number;
|
|
239
|
-
packetsReceived: number;
|
|
240
|
-
packetsLost: number;
|
|
241
|
-
roundTripTime: number;
|
|
242
|
-
currentRoundTripTime: number;
|
|
243
|
-
jitter: number;
|
|
244
|
-
mimeType: string;
|
|
245
|
-
payloadType: number;
|
|
246
|
-
sdpFmtpLine: string;
|
|
247
|
-
frameWidth: number;
|
|
248
|
-
frameHeight: number;
|
|
249
|
-
framesPerSecond: number;
|
|
250
|
-
framesDropped: number;
|
|
251
|
-
totalDecodeTime: number;
|
|
252
|
-
powerEfficientDecoder: boolean;
|
|
253
|
-
}
|
|
254
|
-
export interface TrackReport {
|
|
255
|
-
bytesSent: number;
|
|
256
|
-
offsetBytesSent: number;
|
|
257
|
-
lostRate: number;
|
|
258
|
-
roundTripTime: number;
|
|
259
|
-
jitter: number;
|
|
260
|
-
quality: number;
|
|
261
|
-
averageQuality: number;
|
|
262
|
-
averageOffsetBytesSent: number;
|
|
263
|
-
mimeType: string;
|
|
264
|
-
payloadType: number;
|
|
265
|
-
sdpFmtpLine: string;
|
|
266
|
-
frameWidth: number;
|
|
267
|
-
frameHeight: number;
|
|
268
|
-
framesPerSecond: number;
|
|
269
|
-
availableScore: number;
|
|
270
|
-
}
|
|
271
|
-
export interface DeviceInfo {
|
|
272
|
-
kind: MediaDeviceKind;
|
|
273
|
-
deviceId: string;
|
|
274
|
-
label: string;
|
|
275
|
-
}
|
|
276
|
-
export type EnumerateDevices = {
|
|
277
|
-
[key in MediaDeviceKind]: DeviceInfo[];
|
|
278
|
-
};
|