@xylink/xy-rtc-sdk 2.0.2 → 2.0.3-beta.13
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/lib/index.cjs.js +1 -1
- package/lib/index.js +1 -1
- package/lib/src/action/index.d.ts +21 -5
- package/lib/src/enum/errorCode.d.ts +4 -1
- package/lib/src/enum/index.d.ts +71 -40
- package/lib/src/index.d.ts +6 -4
- package/lib/src/main/client.d.ts +52 -5
- package/lib/src/main/deviceManager.d.ts +9 -1
- package/lib/src/main/helper.d.ts +20 -1
- package/lib/src/main/layoutManager.d.ts +7 -4
- package/lib/src/main/peer.d.ts +5 -6
- package/lib/src/main/stream.d.ts +65 -8
- package/lib/src/main/videoManager.d.ts +1 -1
- package/lib/src/tools/browser.d.ts +15 -0
- package/lib/src/tools/config.d.ts +1 -1
- package/lib/src/tools/detect.d.ts +6 -0
- package/lib/src/tools/enum.d.ts +4 -28
- package/lib/src/tools/httpClient.d.ts +10 -2
- package/lib/src/tools/i18n.d.ts +8 -0
- package/lib/src/tools/socket.d.ts +1 -1
- package/lib/src/tools/utils.d.ts +2 -2
- package/lib/src/type/base.d.ts +17 -0
- package/lib/src/type/client.d.ts +58 -13
- package/lib/src/type/device.d.ts +2 -2
- package/lib/src/type/stream.d.ts +6 -1
- package/package.json +1 -1
package/lib/src/tools/enum.d.ts
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const STR_SIGNAL_TIMEOUT = "\u5A92\u4F53\u8D85\u65F6";
|
|
3
|
-
export declare const STR_EXCEPTION_CALL_EXIST = "\u60A8\u6B63\u5728\u547C\u53EB\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5";
|
|
4
|
-
export declare const STR_CALL_FAIL_UNKNOW_REASON = "\u547C\u53EB\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5";
|
|
5
|
-
export declare const STR_CALL_TIME_OUT = "\u5BF9\u65B9\u6CA1\u6709\u5E94\u7B54\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5";
|
|
6
|
-
export declare const STR_CALL_INVALID_NEMONO = "\u65E0\u6548\u7684\u7EC8\u7AEF\u53F7\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165";
|
|
7
|
-
export declare const STR_CALL_USER_NOT_ALLOWED = "\u5BF9\u65B9\u7EC8\u7AEF\u4E0D\u5141\u8BB8\u5916\u4EBA\u62E8\u6253\uFF0C\u8BF7\u4E0E\u5BF9\u65B9\u786E\u8BA4\u540E\u518D\u62E8";
|
|
8
|
-
export declare const STR_NEN_NORMAL_CONF_SESSION_EXCEED = "\u5F53\u524D\u4F1A\u8BAE\u4EBA\u6570\u5DF2\u8D85\u9650\uFF0C\u8BF7\u52A0\u5165\u4F01\u4E1A\u901A\u8BAF\u5F55\uFF0C\u53EF\u652F\u6301\u66F4\u591A\u65B9\u4F1A\u8BAE\u3002";
|
|
9
|
-
export declare const STR_CALL_NOT_ALLOW_NEMO_CALL = "\u5BF9\u65B9\u7EC8\u7AEF\u4E0D\u5141\u8BB8\u964C\u751F\u4EBA\u547C\u53EB";
|
|
10
|
-
export declare const STR_CONFMGMT_CONFOVER = "\u4E3B\u6301\u4EBA\u7ED3\u675F\u4F1A\u8BAE";
|
|
11
|
-
export declare const STR_CONFMGMT_KICKOUT = "\u4E3B\u6301\u4EBA\u79FB\u9664\u5F53\u524D\u7684\u5C0F\u7A0B\u5E8F";
|
|
12
|
-
export declare const STR_MEETING_LOCKED = "\u4F1A\u8BAE\u5DF2\u7ECF\u88AB\u9501\u5B9A\uFF0C\u65E0\u6CD5\u52A0\u5165";
|
|
13
|
-
export declare const STR_NORMAL_CONF_SESSION_EXCEED = "\u60A8\u547C\u53EB\u7684\u4F1A\u8BAE\u5DF2\u8FBE\u5230\u6700\u5927\u652F\u6301\u4EBA\u6570";
|
|
14
|
-
export declare const STR_NOT_ALLOW_CONFERENCE_CALL = "\u60A8\u547C\u53EB\u7684\u4E91\u4F1A\u8BAE\u5BA4\u4E0D\u5141\u8BB8\u901A\u8BAF\u5F55\u5916\u6210\u5458\u547C\u5165\uFF0C\u8BF7\u8054\u7CFB\u4E91\u4F1A\u8BAE\u5BA4\u7BA1\u7406\u5458";
|
|
15
|
-
export declare const STR_NOT_ALLOW_CONFERENCE_ANONYMOUS_CALL = "\u60A8\u547C\u53EB\u7684\u4E91\u4F1A\u8BAE\u5BA4\u4E0D\u5141\u8BB8\u533F\u540D\u7528\u6237\u547C\u5165\uFF0C\u8BF7\u8054\u7CFB\u4E91\u4F1A\u8BAE\u5BA4\u7BA1\u7406\u5458";
|
|
16
|
-
export declare const STR_TIME_OUT = "\u5BF9\u65B9\u65E0\u5E94\u7B54";
|
|
17
|
-
export declare const STR_BUSY = "\u5BF9\u65B9\u5FD9";
|
|
18
|
-
export declare const STR_PEER_NOT_FOUND = "\u5BF9\u65B9\u4E0D\u5728\u7EBF";
|
|
19
|
-
export declare const STR_STATUS_OK = "\u901A\u8BDD\u5DF2\u7ED3\u675F";
|
|
20
|
-
export declare const STR_EXCEPTION_PARAM_ERROR = "\u547C\u53EB\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5";
|
|
21
|
-
export declare const STR_MEETING_DISCONNECT_USER_CONF_SESSION_EXCEED = "\u6B64\u4E91\u4F1A\u8BAE\u5BA4\u5DF2\u8FBE\u5141\u8BB8\u547C\u5165\u7684\u4E0A\u9650";
|
|
22
|
-
export declare const STR_MEETING_DISCONNECT_DEP_CONF_SESSION_EXCEED = "\u6B64\u4E91\u4F1A\u8BAE\u5BA4\u5DF2\u8FBE\u90E8\u95E8\u5141\u8BB8\u547C\u5165\u7684\u4E0A\u9650";
|
|
23
|
-
export declare const STR_MEETING_DISCONNECT_ENT_CONF_SESSION_EXCEED = "\u6B64\u4E91\u4F1A\u8BAE\u5BA4\u5DF2\u8FBE\u4F01\u4E1A\u5141\u8BB8\u547C\u5165\u7684\u4E0A\u9650";
|
|
24
|
-
export declare const STR_NO_AUTHORITY = "\u6CA1\u6709\u547C\u53EB\u6743\u9650";
|
|
25
|
-
export declare const STR_KickoutTipContent = "\u60A8\u7684\u8D26\u53F7\u5728\u53E6\u4E00\u5730\u70B9\u767B\u5F55\uFF0C\u60A8\u88AB\u8FEB\u4E0B\u7EBF";
|
|
26
|
-
export declare const STR_UNSUPPORT_CALL = "\u60A8\u7684\u7EC8\u7AEF\u76EE\u524D\u65E0\u6CD5\u652F\u6301\u6B64\u7C7B\u547C\u53EB";
|
|
27
|
-
export declare const STR_SHARE_CONTENT_FAILED = "\u5206\u4EAB\u5C4F\u5E55\u5931\u8D25";
|
|
1
|
+
import { TLocale } from 'src/type';
|
|
28
2
|
export declare const FailEnumMap: {
|
|
29
|
-
[key
|
|
3
|
+
[key in TLocale]: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
30
6
|
};
|
|
@@ -18,6 +18,13 @@ export interface ISignParams {
|
|
|
18
18
|
method: string;
|
|
19
19
|
url: string;
|
|
20
20
|
data: string;
|
|
21
|
+
clientId: string;
|
|
22
|
+
clientSecret: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IAxiosRequestConfig extends AxiosRequestConfig {
|
|
25
|
+
sign?: 0 | 1 | 2;
|
|
26
|
+
clientSecret?: string;
|
|
27
|
+
clientId?: string;
|
|
21
28
|
}
|
|
22
29
|
declare class HttpClient {
|
|
23
30
|
commonOption: AxiosRequestConfig;
|
|
@@ -26,16 +33,17 @@ declare class HttpClient {
|
|
|
26
33
|
logger: Logger | null;
|
|
27
34
|
private baseUrl;
|
|
28
35
|
private clientId;
|
|
29
|
-
constructor(commonOption:
|
|
36
|
+
constructor(commonOption: IAxiosRequestConfig);
|
|
30
37
|
setLogger(logger: Logger): void;
|
|
31
38
|
setBaseUrl(url: string): void;
|
|
32
39
|
setClientId(clientId: string): void;
|
|
40
|
+
setHttpConfig(config: IAxiosRequestConfig): void;
|
|
33
41
|
setHeader(params: ISignParams): any;
|
|
34
42
|
setLoginInfo(loginInfo: any): void;
|
|
35
43
|
assignOptions: (option?: AxiosRequestConfig | undefined) => AxiosRequestConfig & {
|
|
36
44
|
params: any;
|
|
37
45
|
};
|
|
38
|
-
get: (url: string, option?:
|
|
46
|
+
get: (url: string, option?: IAxiosRequestConfig | undefined) => any;
|
|
39
47
|
put: (url: string, data?: any, option?: AxiosRequestConfig | undefined) => any;
|
|
40
48
|
post: (url: string, data?: any, option?: AxiosRequestConfig | undefined) => any;
|
|
41
49
|
delete: (url: string, option?: AxiosRequestConfig | undefined) => any;
|
|
@@ -43,7 +43,7 @@ declare class Socket {
|
|
|
43
43
|
reset(): void;
|
|
44
44
|
on(type: string, fn: any): void;
|
|
45
45
|
close(isReconnect?: boolean): void;
|
|
46
|
-
send(data: any, parase?: boolean): void;
|
|
46
|
+
send(data: any, parase?: boolean, isLog?: boolean): void;
|
|
47
47
|
stopCall(): void;
|
|
48
48
|
reConnect(): void;
|
|
49
49
|
}
|
package/lib/src/tools/utils.d.ts
CHANGED
|
@@ -46,9 +46,9 @@ export declare const diffTime: (time1: number, time2: number, format?: string) =
|
|
|
46
46
|
export declare function mapToObj<T>(data: Map<string, T>): {
|
|
47
47
|
[key: string]: T;
|
|
48
48
|
};
|
|
49
|
-
export declare const getStatus: (code: number, detail?:
|
|
49
|
+
export declare const getStatus: (code: number, detail?: any, msg?: string) => {
|
|
50
50
|
code: number;
|
|
51
51
|
msg: string;
|
|
52
|
-
detail:
|
|
52
|
+
detail: any;
|
|
53
53
|
};
|
|
54
54
|
export declare const getErrorMsg: (err: Error) => string;
|
package/lib/src/type/base.d.ts
CHANGED
|
@@ -10,3 +10,20 @@ export interface IStatus {
|
|
|
10
10
|
msg: string;
|
|
11
11
|
detail: any;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* 国际化,目前只支持 英文、中文、繁体
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare type TLocale = 'en_US' | 'zh_CN' | 'zh_TW';
|
|
18
|
+
/**
|
|
19
|
+
* 是否支持入会
|
|
20
|
+
*/
|
|
21
|
+
export interface ICheckSystemRequirements {
|
|
22
|
+
result: boolean;
|
|
23
|
+
detail: {
|
|
24
|
+
isSupportRTC: boolean;
|
|
25
|
+
isSupportWebsocket: boolean;
|
|
26
|
+
isSupportH264: boolean;
|
|
27
|
+
isSupportBrowser: boolean;
|
|
28
|
+
};
|
|
29
|
+
}
|
package/lib/src/type/client.d.ts
CHANGED
|
@@ -178,6 +178,7 @@ export declare type IQualityType = 0 | 1 | 2;
|
|
|
178
178
|
* @property { string } __hideId 是否是隐身入会模式,hide代表隐身入会,为空代表正常模式
|
|
179
179
|
* @property { string } __monitorMode 是否是巡课模式,默认是'',MONITOR代表巡课模式
|
|
180
180
|
* @property { boolean } isThird 埋点
|
|
181
|
+
* @property { boolean } isSupportHybridCloud 是否是混合云
|
|
181
182
|
*
|
|
182
183
|
*/
|
|
183
184
|
export interface IClientConfig {
|
|
@@ -199,6 +200,7 @@ export interface IClientConfig {
|
|
|
199
200
|
__hideId?: string;
|
|
200
201
|
__monitorMode?: string;
|
|
201
202
|
isThird?: boolean;
|
|
203
|
+
isSupportHybridCloud?: boolean;
|
|
202
204
|
}
|
|
203
205
|
export interface ILayoutParams {
|
|
204
206
|
rosters: IRoster[];
|
|
@@ -268,6 +270,12 @@ export interface IDefault {
|
|
|
268
270
|
displayName: string;
|
|
269
271
|
};
|
|
270
272
|
LAYOUT: ILayout;
|
|
273
|
+
MAP_RESOLUTION_STRING: {
|
|
274
|
+
[resolution: string]: {
|
|
275
|
+
width: number;
|
|
276
|
+
height: number;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
271
279
|
}
|
|
272
280
|
/**
|
|
273
281
|
* SDK登录结果
|
|
@@ -288,6 +296,7 @@ export interface ILoginInfo {
|
|
|
288
296
|
id: number;
|
|
289
297
|
displayName?: string;
|
|
290
298
|
cellPhone?: string;
|
|
299
|
+
extUserId?: string;
|
|
291
300
|
}
|
|
292
301
|
export interface IErrorCodeList {
|
|
293
302
|
version: string;
|
|
@@ -403,16 +412,19 @@ export interface ICandidate extends RTCIceCandidateInit {
|
|
|
403
412
|
export interface ILoginExtAccount {
|
|
404
413
|
displayName: string;
|
|
405
414
|
extId: string;
|
|
415
|
+
extUserId?: string;
|
|
406
416
|
}
|
|
407
417
|
/**
|
|
408
418
|
* 第三方登录sdk用户信息,由sdk server创建
|
|
409
419
|
*
|
|
410
420
|
* @property { string } userName sdk用户名
|
|
411
421
|
* @property { string } password sdk密码
|
|
422
|
+
* @property { string? } extId sdk企业Id
|
|
412
423
|
*/
|
|
413
424
|
export interface ISdkUserInfo {
|
|
414
425
|
userName: string;
|
|
415
426
|
password: string;
|
|
427
|
+
extId?: string;
|
|
416
428
|
}
|
|
417
429
|
export interface IServers {
|
|
418
430
|
wssServer: string;
|
|
@@ -430,7 +442,6 @@ export interface IHttpConfig {
|
|
|
430
442
|
export interface IConfig {
|
|
431
443
|
client_id: string;
|
|
432
444
|
access_token: string;
|
|
433
|
-
signSecret: string;
|
|
434
445
|
refresh_token?: string;
|
|
435
446
|
domain?: string;
|
|
436
447
|
expires_in?: string;
|
|
@@ -438,25 +449,37 @@ export interface IConfig {
|
|
|
438
449
|
scope?: string;
|
|
439
450
|
token_type?: string;
|
|
440
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* 会议室配置信息
|
|
454
|
+
*
|
|
455
|
+
* @property { string } watermarkContent 共享时叠加水印内容
|
|
456
|
+
*/
|
|
457
|
+
export interface IConfAuxProperties {
|
|
458
|
+
watermarkContent: string;
|
|
459
|
+
}
|
|
441
460
|
/**
|
|
442
461
|
* 会议号信息
|
|
443
462
|
*
|
|
444
|
-
* @property { string } callNumber
|
|
463
|
+
* @property { string } callNumber 最终进入的真实会议号
|
|
445
464
|
* @property { string } callUrl 呼叫号码真实url
|
|
446
465
|
* @property { string } deviceId 号码id
|
|
447
466
|
* @property { string } deviceType 号码类型
|
|
448
467
|
* @property { string } displayName 云会议号名称
|
|
449
|
-
* @property { string } number
|
|
468
|
+
* @property { string } number 呼叫的号码
|
|
450
469
|
* @property { string } numberType 会议号类型
|
|
470
|
+
* @property { IConfAuxProperties } confAuxProperties 会议配置
|
|
471
|
+
* @property { string } avatar 头像
|
|
451
472
|
*/
|
|
452
|
-
interface
|
|
473
|
+
export interface IConferenceInfo {
|
|
453
474
|
callNumber: string;
|
|
454
|
-
callUrl
|
|
455
|
-
deviceId
|
|
456
|
-
deviceType
|
|
457
|
-
displayName
|
|
458
|
-
number
|
|
459
|
-
numberType
|
|
475
|
+
callUrl?: string;
|
|
476
|
+
deviceId?: string;
|
|
477
|
+
deviceType?: string;
|
|
478
|
+
displayName?: string;
|
|
479
|
+
number?: string;
|
|
480
|
+
numberType?: string;
|
|
481
|
+
confAuxProperties?: IConfAuxProperties;
|
|
482
|
+
avatar?: string;
|
|
460
483
|
}
|
|
461
484
|
/**
|
|
462
485
|
* 呼叫参数
|
|
@@ -476,10 +499,10 @@ export interface IMackCall {
|
|
|
476
499
|
* 呼叫的会议信息
|
|
477
500
|
*
|
|
478
501
|
* @extends IMackCall
|
|
479
|
-
* @property {
|
|
502
|
+
* @property { IConferenceInfo } meeting 会议号信息
|
|
480
503
|
*/
|
|
481
504
|
export interface ICall extends IMackCall {
|
|
482
|
-
meeting?:
|
|
505
|
+
meeting?: IConferenceInfo;
|
|
483
506
|
}
|
|
484
507
|
/**
|
|
485
508
|
* 入会成功之后的会议信息
|
|
@@ -490,6 +513,7 @@ export interface ICall extends IMackCall {
|
|
|
490
513
|
* @property { string } meetingId 会议hash id
|
|
491
514
|
* @property { string } vcNumber 最终的会议号
|
|
492
515
|
* @property { "true" | "false" } inoutReminder 是否设置了出入会提醒
|
|
516
|
+
* @property { string } commonJson 其他会议室配置
|
|
493
517
|
*/
|
|
494
518
|
export interface IInvite {
|
|
495
519
|
callerUri: string;
|
|
@@ -498,6 +522,7 @@ export interface IInvite {
|
|
|
498
522
|
meetingId: string;
|
|
499
523
|
vcNumber?: string;
|
|
500
524
|
inoutReminder?: 'true' | 'false';
|
|
525
|
+
commonJson?: string;
|
|
501
526
|
}
|
|
502
527
|
/**
|
|
503
528
|
* 会控回调信息
|
|
@@ -542,7 +567,8 @@ export interface IMeetingControl {
|
|
|
542
567
|
* @property { boolean } isPolling ignore
|
|
543
568
|
* @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
|
|
544
569
|
* @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
|
|
545
|
-
* @property {
|
|
570
|
+
* @property { string } id 参会者唯一id,值为 endpointId + mediagroupid,用于区分一个人同时发送people+content画面数据
|
|
571
|
+
* @property { string } extUserId 三方userId
|
|
546
572
|
* @property { boolean } isLocal 参会者是否是自己
|
|
547
573
|
*/
|
|
548
574
|
export interface IRoster {
|
|
@@ -563,6 +589,7 @@ export interface IRoster {
|
|
|
563
589
|
isContent: boolean;
|
|
564
590
|
isActiveSpeaker?: boolean;
|
|
565
591
|
id: string;
|
|
592
|
+
extUserId: string;
|
|
566
593
|
isLocal?: boolean;
|
|
567
594
|
}
|
|
568
595
|
/**
|
|
@@ -610,12 +637,14 @@ export interface ILayoutRoster {
|
|
|
610
637
|
* Conf Change消息
|
|
611
638
|
*
|
|
612
639
|
* @property { number } participantCount 当前会议参会者总人数,不包含共享内容设备数量
|
|
640
|
+
* @property { number } totalEpCount 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量
|
|
613
641
|
* @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
|
|
614
642
|
* @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
|
|
615
643
|
* @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
|
|
616
644
|
*/
|
|
617
645
|
export interface IConfInfo {
|
|
618
646
|
participantCount: number;
|
|
647
|
+
totalEpCount: number;
|
|
619
648
|
chairManUrl: string;
|
|
620
649
|
contentUri: string;
|
|
621
650
|
actSpkUri: string;
|
|
@@ -875,4 +904,20 @@ export interface IConference {
|
|
|
875
904
|
displayName: string;
|
|
876
905
|
number: string;
|
|
877
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* 参会者信息
|
|
909
|
+
*
|
|
910
|
+
* @property { 0 | 1 } bulkRosterType 全量roster类型,0表示全量数据,1表示增量数据
|
|
911
|
+
* @property { IRoster[] } addRosterInfo 新增的roster信息 当bulkRosterType是0的时候,此参数表示全量数据
|
|
912
|
+
* @property { IRoster[] } changeRosterInfo 变化的roster信息
|
|
913
|
+
* @property { { participantId: string }[] } deleteRosterInfo 被删除的roster信息
|
|
914
|
+
*/
|
|
915
|
+
export interface IBulkRoster {
|
|
916
|
+
bulkRosterType: 0 | 1;
|
|
917
|
+
addRosterInfo: IRoster[];
|
|
918
|
+
changeRosterInfo: IRoster[];
|
|
919
|
+
deleteRosterInfo: {
|
|
920
|
+
participantId: string;
|
|
921
|
+
}[];
|
|
922
|
+
}
|
|
878
923
|
export {};
|
package/lib/src/type/device.d.ts
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* @value granted 已授权
|
|
5
5
|
* @value denied 已拒绝
|
|
6
6
|
* @value prompt 询问中
|
|
7
|
+
* @value unknow 未知
|
|
7
8
|
* @value '' 默认
|
|
8
9
|
*/
|
|
9
|
-
declare type TPermissionType = 'granted' | 'denied' | 'prompt' | '';
|
|
10
|
+
export declare type TPermissionType = 'granted' | 'denied' | 'prompt' | 'unknow' | 'failed' | '';
|
|
10
11
|
/**
|
|
11
12
|
* 获取设备信息
|
|
12
13
|
*
|
|
@@ -74,4 +75,3 @@ export interface ICurrentPermission {
|
|
|
74
75
|
microphone: TPermissionType;
|
|
75
76
|
camera: TPermissionType;
|
|
76
77
|
}
|
|
77
|
-
export {};
|
package/lib/src/type/stream.d.ts
CHANGED
|
@@ -204,7 +204,9 @@ export interface IInternels {
|
|
|
204
204
|
* @property { string } ssrc 同步源 (ssrc) 标识符是每个 [RFC3550] 的无符号整数值,用于标识此 stats 对象正在描述的 RTP 数据包流;
|
|
205
205
|
* 对于出站和入站本地,ssrc 描述了分别由这些端点发送和接收的轨道的统计信息;
|
|
206
206
|
* 对于远程入站和远程出站,ssrc 描述了由远程端点接收和发送到远程端点的轨道的统计信息;
|
|
207
|
-
*
|
|
207
|
+
* @property { number } jitter 视频接收抖动
|
|
208
|
+
* @property { string } endpointId 参会者的callUri
|
|
209
|
+
* @property { string } participantId participantId
|
|
208
210
|
*/
|
|
209
211
|
export interface IReceiver {
|
|
210
212
|
bytesReceived: number;
|
|
@@ -230,6 +232,9 @@ export interface IReceiver {
|
|
|
230
232
|
framesPerSecond: number;
|
|
231
233
|
framesDropped: number;
|
|
232
234
|
ssrc: string;
|
|
235
|
+
jitter: number;
|
|
236
|
+
endpointId?: string;
|
|
237
|
+
participantId?: number;
|
|
233
238
|
}
|
|
234
239
|
/**
|
|
235
240
|
* 发送器 Sender 统计数据
|