@xylink/xy-rtc-sdk 2.1.2-beta.7 → 3.8.0-beta.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.
Files changed (49) hide show
  1. package/README.MD +2 -37
  2. package/lib/{src/action → action}/index.d.ts +237 -230
  3. package/lib/{src/enum → enum}/contraints.d.ts +116 -115
  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 +878 -797
  8. package/lib/{src/main → main}/deviceManager.d.ts +164 -165
  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/{src/main → main}/peer.d.ts +311 -295
  13. package/lib/{src/main → main}/qualityManager.d.ts +39 -39
  14. package/lib/{src/main → main}/stream.d.ts +263 -243
  15. package/lib/{src/main → main}/videoManager.d.ts +65 -65
  16. package/lib/{src/tools → tools}/audioLevel.d.ts +23 -23
  17. package/lib/{src/tools → tools}/browser.d.ts +55 -55
  18. package/lib/{src/tools → tools}/config.d.ts +12 -12
  19. package/lib/{src/tools → tools}/db.d.ts +85 -84
  20. package/lib/tools/detect.d.ts +44 -0
  21. package/lib/{src/tools → tools}/emmitter.d.ts +15 -15
  22. package/lib/{src/tools → tools}/enum.d.ts +6 -6
  23. package/lib/{src/tools → tools}/httpClient.d.ts +64 -61
  24. package/lib/{src/tools → tools}/i18n.d.ts +8 -8
  25. package/lib/{src/tools → tools}/index.d.ts +8 -3
  26. package/lib/{src/tools → tools}/logger.d.ts +151 -151
  27. package/lib/{src/tools → tools}/socket.d.ts +53 -50
  28. package/lib/{src/tools → tools}/store.d.ts +15 -15
  29. package/lib/{src/tools → tools}/template.d.ts +14 -14
  30. package/lib/{src/tools → tools}/utils.d.ts +73 -67
  31. package/lib/{src/tools → tools}/verify.d.ts +7 -7
  32. package/lib/{src/type → type}/base.d.ts +71 -67
  33. package/lib/{src/type → type}/client.d.ts +1121 -1106
  34. package/lib/{src/type → type}/device.d.ts +77 -77
  35. package/lib/{src/type → type}/index.d.ts +11 -11
  36. package/lib/{src/type → type}/quality.d.ts +77 -77
  37. package/lib/{src/type → type}/stream.d.ts +426 -422
  38. package/lib/xyrtc.cjs.js +1 -0
  39. package/lib/xyrtc.umd.js +1 -0
  40. package/package.json +43 -54
  41. package/scripts/build_lib.js +16 -0
  42. package/scripts/utils.js +27 -0
  43. package/scripts/webpack.common.js +139 -0
  44. package/scripts/webpack.dev.js +27 -0
  45. package/scripts/webpack.sdk.js +68 -0
  46. package/tsconfig.lib.json +37 -0
  47. package/lib/index.es.js +0 -3
  48. package/lib/index.js +0 -3
  49. package/lib/src/tools/detect.d.ts +0 -19
@@ -1,115 +1,116 @@
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>;
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>;