@xylink/xy-rtc-sdk 2.1.2 → 3.8.0-beta.2

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.
Files changed (51) hide show
  1. package/README.MD +37 -37
  2. package/lib/{src/action → action}/index.d.ts +254 -236
  3. package/lib/{src/enum → enum}/contraints.d.ts +121 -116
  4. package/lib/{src/enum → enum}/errorCode.d.ts +880 -880
  5. package/lib/{src/enum → enum}/index.d.ts +137 -133
  6. package/lib/{src/index.d.ts → index.d.ts} +34 -34
  7. package/lib/{src/main → main}/client.d.ts +953 -808
  8. package/lib/{src/main → main}/deviceManager.d.ts +164 -164
  9. package/lib/{src/main → main}/helper.d.ts +51 -51
  10. package/lib/{src/main → main}/iauth.d.ts +33 -33
  11. package/lib/{src/main → main}/layoutManager.d.ts +214 -214
  12. package/lib/main/meeting.d.ts +80 -0
  13. package/lib/{src/main → main}/peer.d.ts +311 -311
  14. package/lib/{src/main → main}/qualityManager.d.ts +39 -39
  15. package/lib/{src/main → main}/stream.d.ts +263 -243
  16. package/lib/{src/main → main}/videoManager.d.ts +65 -65
  17. package/lib/{src/tools → tools}/audioLevel.d.ts +23 -23
  18. package/lib/{src/tools → tools}/browser.d.ts +55 -55
  19. package/lib/{src/tools → tools}/config.d.ts +14 -12
  20. package/lib/{src/tools → tools}/db.d.ts +85 -85
  21. package/lib/{src/tools → tools}/detect.d.ts +44 -45
  22. package/lib/{src/tools → tools}/emmitter.d.ts +15 -15
  23. package/lib/{src/tools → tools}/enum.d.ts +6 -6
  24. package/lib/{src/tools → tools}/httpClient.d.ts +64 -64
  25. package/lib/{src/tools → tools}/i18n.d.ts +8 -8
  26. package/lib/{src/tools → tools}/index.d.ts +8 -8
  27. package/lib/{src/tools → tools}/logger.d.ts +151 -151
  28. package/lib/{src/tools → tools}/socket.d.ts +53 -53
  29. package/lib/{src/tools → tools}/store.d.ts +15 -15
  30. package/lib/{src/tools → tools}/template.d.ts +14 -14
  31. package/lib/{src/tools → tools}/utils.d.ts +74 -67
  32. package/lib/{src/tools → tools}/verify.d.ts +7 -7
  33. package/lib/type/action.d.ts +6 -0
  34. package/lib/{src/type → type}/base.d.ts +71 -71
  35. package/lib/{src/type → type}/client.d.ts +1174 -1106
  36. package/lib/{src/type → type}/device.d.ts +77 -77
  37. package/lib/{src/type → type}/index.d.ts +13 -11
  38. package/lib/type/meeting.d.ts +41 -0
  39. package/lib/{src/type → type}/quality.d.ts +77 -77
  40. package/lib/{src/type → type}/stream.d.ts +426 -426
  41. package/lib/xyrtc.cjs.js +1 -0
  42. package/lib/xyrtc.umd.js +1 -0
  43. package/package.json +119 -130
  44. package/scripts/build_lib.js +16 -0
  45. package/scripts/utils.js +27 -0
  46. package/scripts/webpack.common.js +139 -0
  47. package/scripts/webpack.dev.js +27 -0
  48. package/scripts/webpack.sdk.js +68 -0
  49. package/tsconfig.lib.json +37 -0
  50. package/lib/index.es.js +0 -3
  51. package/lib/index.js +0 -3
@@ -1,116 +1,121 @@
1
- import { ICONTENT_CONTRAINTS, IBASE_CONTRAINTS } from '../type';
2
- /**
3
- * 初始默认采集分辨率
4
- */
5
- export declare const BASE_RESOLUTION_CONTRAINTS: {
6
- width: number;
7
- height: number;
8
- };
9
- /**
10
- * 360P
11
- */
12
- export declare const RESOLUTION_360_CONTRAINTS: {
13
- width: number;
14
- height: number;
15
- };
16
- /**
17
- * people 采集基础配置
18
- *
19
- *
20
- */
21
- export declare const BASE_CONTRAINTS: IBASE_CONTRAINTS;
22
- /**
23
- * content 采集基础配置
24
- */
25
- export declare const CONTENT_BASE_CONTRAINTS: ICONTENT_CONTRAINTS;
26
- /**
27
- * content 720P 1080P 采集配置信息
28
- *
29
- * common: 普通模式
30
- * advanced: 高级模式, 帧率、宽、高 可进行最大、最小、期望设置
31
- */
32
- export declare const CONTENT_CONTRAINTS: {
33
- '720': {
34
- common: {
35
- frameRate?: ConstrainDouble | undefined;
36
- width: number;
37
- height: number;
38
- cursor: string;
39
- aspectRatio: number;
40
- resizeMode: "crop-and-scale";
41
- logicalSurface: true;
42
- } | {
43
- frameRate: ConstrainDouble;
44
- width: number;
45
- height: number;
46
- cursor: string;
47
- aspectRatio: number;
48
- resizeMode: "crop-and-scale";
49
- logicalSurface: true;
50
- };
51
- advanced: {
52
- frameRate: {
53
- ideal: number;
54
- max: number;
55
- };
56
- width: {
57
- ideal: number;
58
- max: number;
59
- };
60
- height: {
61
- ideal: number;
62
- max: number;
63
- };
64
- cursor: string;
65
- aspectRatio: number;
66
- resizeMode: "crop-and-scale";
67
- logicalSurface: true;
68
- };
69
- };
70
- '1080': {
71
- common: {
72
- frameRate?: ConstrainDouble | undefined;
73
- width: number;
74
- height: number;
75
- cursor: string;
76
- aspectRatio: number;
77
- resizeMode: "crop-and-scale";
78
- logicalSurface: true;
79
- } | {
80
- frameRate: ConstrainDouble;
81
- width: number;
82
- height: number;
83
- cursor: string;
84
- aspectRatio: number;
85
- resizeMode: "crop-and-scale";
86
- logicalSurface: true;
87
- };
88
- advanced: {
89
- frameRate: {
90
- ideal: number;
91
- max: number;
92
- };
93
- width: {
94
- ideal: number;
95
- max: number;
96
- };
97
- height: {
98
- ideal: number;
99
- max: number;
100
- };
101
- cursor: string;
102
- aspectRatio: number;
103
- resizeMode: "crop-and-scale";
104
- logicalSurface: true;
105
- };
106
- };
107
- };
108
- /**
109
- * people 180P 360P 720P 采集配置信息
110
- *
111
- * common: 普通模式
112
- * advanced: 高级模式, 帧率、宽、高 可进行最大、最小、期望设置
113
- */
114
- export declare const PEOPLE_CONTRAINTS: any;
115
- export declare const RESOLUTION_MAP: Record<string, number>;
116
- export declare const MIN_BANDWIDTH_MAP: Record<string, number>;
1
+ import { ICONTENT_CONTRAINTS, IBASE_CONTRAINTS } from '../type';
2
+ /**
3
+ * 初始默认采集分辨率
4
+ */
5
+ export declare const BASE_RESOLUTION_CONTRAINTS: {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ /**
10
+ * 360P
11
+ */
12
+ export declare const RESOLUTION_360_CONTRAINTS: {
13
+ width: number;
14
+ height: number;
15
+ };
16
+ /**
17
+ * people 采集基础配置
18
+ *
19
+ *
20
+ */
21
+ export declare const BASE_CONTRAINTS: IBASE_CONTRAINTS;
22
+ /**
23
+ * content 采集基础配置
24
+ */
25
+ export declare const CONTENT_BASE_CONTRAINTS: ICONTENT_CONTRAINTS;
26
+ /**
27
+ * content 720P 1080P 采集配置信息
28
+ *
29
+ * common: 普通模式
30
+ * advanced: 高级模式, 帧率、宽、高 可进行最大、最小、期望设置
31
+ */
32
+ export declare const CONTENT_CONTRAINTS: {
33
+ '720': {
34
+ common: {
35
+ frameRate?: ConstrainDouble | undefined;
36
+ width: number;
37
+ height: number;
38
+ cursor: string;
39
+ aspectRatio: number;
40
+ resizeMode: "crop-and-scale";
41
+ logicalSurface: true;
42
+ } | {
43
+ frameRate: ConstrainDouble;
44
+ width: number;
45
+ height: number;
46
+ cursor: string;
47
+ aspectRatio: number;
48
+ resizeMode: "crop-and-scale";
49
+ logicalSurface: true;
50
+ };
51
+ advanced: {
52
+ frameRate: {
53
+ ideal: number;
54
+ max: number;
55
+ };
56
+ width: {
57
+ ideal: number;
58
+ max: number;
59
+ };
60
+ height: {
61
+ ideal: number;
62
+ max: number;
63
+ };
64
+ cursor: string;
65
+ aspectRatio: number;
66
+ resizeMode: "crop-and-scale";
67
+ logicalSurface: true;
68
+ };
69
+ };
70
+ '1080': {
71
+ common: {
72
+ frameRate?: ConstrainDouble | undefined;
73
+ width: number;
74
+ height: number;
75
+ cursor: string;
76
+ aspectRatio: number;
77
+ resizeMode: "crop-and-scale";
78
+ logicalSurface: true;
79
+ } | {
80
+ frameRate: ConstrainDouble;
81
+ width: number;
82
+ height: number;
83
+ cursor: string;
84
+ aspectRatio: number;
85
+ resizeMode: "crop-and-scale";
86
+ logicalSurface: true;
87
+ };
88
+ advanced: {
89
+ frameRate: {
90
+ ideal: number;
91
+ max: number;
92
+ };
93
+ width: {
94
+ ideal: number;
95
+ max: number;
96
+ };
97
+ height: {
98
+ ideal: number;
99
+ max: number;
100
+ };
101
+ cursor: string;
102
+ aspectRatio: number;
103
+ resizeMode: "crop-and-scale";
104
+ logicalSurface: true;
105
+ };
106
+ };
107
+ };
108
+ /**
109
+ * people 180P 360P 720P 采集配置信息
110
+ *
111
+ * common: 普通模式
112
+ * advanced: 高级模式, 帧率、宽、高 可进行最大、最小、期望设置
113
+ */
114
+ export declare const PEOPLE_CONTRAINTS: any;
115
+ export declare const RESOLUTION_MAP: Record<string, number>;
116
+ export declare const MIN_BANDWIDTH_MAP: Record<string, number>;
117
+ export declare const MEETING_CONTROL_PLATFORM: {
118
+ PC: string;
119
+ MOBILE: string;
120
+ SIDE: string;
121
+ };