@ray-js/ipc-player-integration 0.0.29-beta.9 → 0.0.30

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 (53) hide show
  1. package/lib/ctx/ctx.composition.d.ts +9 -3
  2. package/lib/ctx/ctx.composition.js +42 -2
  3. package/lib/ctx/ctx.js +5 -0
  4. package/lib/ctx/multiCameraCtx.d.ts +31 -1
  5. package/lib/ctx/multiCameraCtx.js +60 -16
  6. package/lib/features/initPlayerWidgets/index.d.ts +7 -1
  7. package/lib/features/initPlayerWidgets/index.js +14 -11
  8. package/lib/i18n/index.d.ts +4 -0
  9. package/lib/i18n/strings.d.ts +2 -0
  10. package/lib/i18n/strings.js +4 -2
  11. package/lib/iconfont/iconfont.css +126 -6
  12. package/lib/iconfont/iconfont.js +13 -13
  13. package/lib/iconfont/iconfont.json +217 -7
  14. package/lib/iconfont/iconfont.ttf +0 -0
  15. package/lib/iconfont/iconfont.woff +0 -0
  16. package/lib/iconfont/iconfont.woff2 +0 -0
  17. package/lib/index.d.ts +2 -1
  18. package/lib/index.js +2 -1
  19. package/lib/interface.d.ts +43 -2
  20. package/lib/ui/constant.d.ts +1 -0
  21. package/lib/ui/constant.js +1 -0
  22. package/lib/ui/ui.d.ts +1 -0
  23. package/lib/ui/ui.js +144 -34
  24. package/lib/ui/ui.less +2 -2
  25. package/lib/utils/index.d.ts +2 -0
  26. package/lib/utils/index.js +12 -1
  27. package/lib/utils/videoSplitHelper.d.ts +18 -0
  28. package/lib/utils/videoSplitHelper.js +48 -0
  29. package/lib/widgets/flowLowTip/flowLowTip.d.ts +8 -0
  30. package/lib/widgets/flowLowTip/flowLowTip.js +65 -0
  31. package/lib/widgets/flowLowTip/flowLowTip.less +73 -0
  32. package/lib/widgets/flowLowTip/index.d.ts +1 -0
  33. package/lib/widgets/flowLowTip/index.js +1 -0
  34. package/lib/widgets/fullScreen/fullScreen.js +2 -3
  35. package/lib/widgets/fullScreen/fullVoiceIntercom.js +1 -1
  36. package/lib/widgets/fullScreen/verticalScreen.js +1 -1
  37. package/lib/widgets/index.d.ts +2 -0
  38. package/lib/widgets/index.js +3 -1
  39. package/lib/widgets/multiCamera/index.less +23 -0
  40. package/lib/widgets/multiCamera/moveablePtzControl.js +16 -7
  41. package/lib/widgets/multiCamera/tileActions.js +2 -2
  42. package/lib/widgets/toggleVerticalFull/index.d.ts +1 -0
  43. package/lib/widgets/toggleVerticalFull/index.js +1 -0
  44. package/lib/widgets/toggleVerticalFull/toggleVerticalFull.d.ts +8 -0
  45. package/lib/widgets/toggleVerticalFull/toggleVerticalFull.js +32 -0
  46. package/lib/widgets/toggleVerticalFull/toggleVerticalFull.less +4 -0
  47. package/lib/widgets/voiceIntercom/voiceIntercom.js +12 -20
  48. package/lib/widgets/voiceIntercom/voiceIntercom.less +85 -0
  49. package/package.json +4 -4
  50. package/lib/features/initPlayerWidgets/multiCamera.d.ts +0 -8
  51. package/lib/features/initPlayerWidgets/multiCamera.js +0 -78
  52. package/lib/widgets/battery/battery.composition.d.ts +0 -159
  53. package/lib/widgets/voiceIntercom/voiceIntercom.d.ts +0 -95
@@ -5,6 +5,223 @@
5
5
  "css_prefix_text": "icon-panel-",
6
6
  "description": "IPC 小程序公版",
7
7
  "glyphs": [
8
+ {
9
+ "icon_id": "46981006",
10
+ "name": "tip-right-arrow",
11
+ "font_class": "tip-right-arrow",
12
+ "unicode": "e697",
13
+ "unicode_decimal": 59031
14
+ },
15
+ {
16
+ "icon_id": "46981005",
17
+ "name": "tip-circle",
18
+ "font_class": "tip-circle",
19
+ "unicode": "e698",
20
+ "unicode_decimal": 59032
21
+ },
22
+ {
23
+ "icon_id": "46872593",
24
+ "name": "night-light",
25
+ "font_class": "night-light",
26
+ "unicode": "e60e",
27
+ "unicode_decimal": 58894
28
+ },
29
+ {
30
+ "icon_id": "46869725",
31
+ "name": "feed-reminder",
32
+ "font_class": "feed-reminder",
33
+ "unicode": "e60c",
34
+ "unicode_decimal": 58892
35
+ },
36
+ {
37
+ "icon_id": "46869723",
38
+ "name": "baby-core",
39
+ "font_class": "baby-core",
40
+ "unicode": "e611",
41
+ "unicode_decimal": 58897
42
+ },
43
+ {
44
+ "icon_id": "46763588",
45
+ "name": "door-close-small",
46
+ "font_class": "door-close-small",
47
+ "unicode": "e6671",
48
+ "unicode_decimal": 943729
49
+ },
50
+ {
51
+ "icon_id": "46763563",
52
+ "name": "door-close-large",
53
+ "font_class": "door-close-large",
54
+ "unicode": "e6672",
55
+ "unicode_decimal": 943730
56
+ },
57
+ {
58
+ "icon_id": "46763122",
59
+ "name": "door-open-small",
60
+ "font_class": "door-open-small",
61
+ "unicode": "e6673",
62
+ "unicode_decimal": 943731
63
+ },
64
+ {
65
+ "icon_id": "46763015",
66
+ "name": "door-open-large",
67
+ "font_class": "door-open-large",
68
+ "unicode": "e6674",
69
+ "unicode_decimal": 943732
70
+ },
71
+ {
72
+ "icon_id": "46747422",
73
+ "name": "common-error",
74
+ "font_class": "common-error",
75
+ "unicode": "e696",
76
+ "unicode_decimal": 59030
77
+ },
78
+ {
79
+ "icon_id": "46747207",
80
+ "name": "traffic-top-up",
81
+ "font_class": "traffic-top-up",
82
+ "unicode": "e693",
83
+ "unicode_decimal": 59027
84
+ },
85
+ {
86
+ "icon_id": "46744274",
87
+ "name": "elevator-up",
88
+ "font_class": "elevator-up",
89
+ "unicode": "e6666",
90
+ "unicode_decimal": 943718
91
+ },
92
+ {
93
+ "icon_id": "46744267",
94
+ "name": "elevator-down",
95
+ "font_class": "elevator-down",
96
+ "unicode": "e6667",
97
+ "unicode_decimal": 943719
98
+ },
99
+ {
100
+ "icon_id": "46744283",
101
+ "name": "access-elevator",
102
+ "font_class": "access-elevator",
103
+ "unicode": "e6668",
104
+ "unicode_decimal": 943720
105
+ },
106
+ {
107
+ "icon_id": "46744282",
108
+ "name": "elevator-updown",
109
+ "font_class": "elevator-updown",
110
+ "unicode": "e6669",
111
+ "unicode_decimal": 943721
112
+ },
113
+ {
114
+ "icon_id": "46692674",
115
+ "name": "traffic-unauthorized",
116
+ "font_class": "traffic-unauthorized",
117
+ "unicode": "e692",
118
+ "unicode_decimal": 59026
119
+ },
120
+ {
121
+ "icon_id": "46692640",
122
+ "name": "traffic-low-data",
123
+ "font_class": "traffic-low-data",
124
+ "unicode": "e691",
125
+ "unicode_decimal": 59025
126
+ },
127
+ {
128
+ "icon_id": "46692641",
129
+ "name": "traffic-not-obtain",
130
+ "font_class": "traffic-not-obtain",
131
+ "unicode": "e690",
132
+ "unicode_decimal": 59024
133
+ },
134
+ {
135
+ "icon_id": "46518513",
136
+ "name": "swimming-anomaly",
137
+ "font_class": "swimming-anomaly",
138
+ "unicode": "e67a",
139
+ "unicode_decimal": 59002
140
+ },
141
+ {
142
+ "icon_id": "46518507",
143
+ "name": "feed-fish",
144
+ "font_class": "feed-fish",
145
+ "unicode": "e67b",
146
+ "unicode_decimal": 59003
147
+ },
148
+ {
149
+ "icon_id": "46518512",
150
+ "name": "water-temp",
151
+ "font_class": "water-temp",
152
+ "unicode": "e67c",
153
+ "unicode_decimal": 59004
154
+ },
155
+ {
156
+ "icon_id": "46518508",
157
+ "name": "fun-fish-TV",
158
+ "font_class": "fun-fish-TV",
159
+ "unicode": "e67d",
160
+ "unicode_decimal": 59005
161
+ },
162
+ {
163
+ "icon_id": "46518510",
164
+ "name": "fish-care-expert",
165
+ "font_class": "fish-care-expert",
166
+ "unicode": "e67e",
167
+ "unicode_decimal": 59006
168
+ },
169
+ {
170
+ "icon_id": "46518511",
171
+ "name": "water-quality",
172
+ "font_class": "water-quality",
173
+ "unicode": "e68b",
174
+ "unicode_decimal": 59019
175
+ },
176
+ {
177
+ "icon_id": "46518509",
178
+ "name": "swimming-issue",
179
+ "font_class": "swimming-issue",
180
+ "unicode": "e68d",
181
+ "unicode_decimal": 59021
182
+ },
183
+ {
184
+ "icon_id": "46518506",
185
+ "name": "fish-anomaly",
186
+ "font_class": "fish-anomaly",
187
+ "unicode": "e68e",
188
+ "unicode_decimal": 59022
189
+ },
190
+ {
191
+ "icon_id": "46518505",
192
+ "name": "AI-fish-health-check",
193
+ "font_class": "a-AI-fish-healthcheck",
194
+ "unicode": "e68f",
195
+ "unicode_decimal": 59023
196
+ },
197
+ {
198
+ "icon_id": "46514652",
199
+ "name": "favorites",
200
+ "font_class": "favorites1",
201
+ "unicode": "e69f",
202
+ "unicode_decimal": 59039
203
+ },
204
+ {
205
+ "icon_id": "46514654",
206
+ "name": "belly-up",
207
+ "font_class": "belly-up1",
208
+ "unicode": "e6a0",
209
+ "unicode_decimal": 59040
210
+ },
211
+ {
212
+ "icon_id": "46514664",
213
+ "name": "favorite",
214
+ "font_class": "favorite1",
215
+ "unicode": "e694",
216
+ "unicode_decimal": 59028
217
+ },
218
+ {
219
+ "icon_id": "46514661",
220
+ "name": "replay",
221
+ "font_class": "replay1",
222
+ "unicode": "e695",
223
+ "unicode_decimal": 59029
224
+ },
8
225
  {
9
226
  "icon_id": "45928176",
10
227
  "name": "gun-ball",
@@ -12,13 +229,6 @@
12
229
  "unicode": "e68c",
13
230
  "unicode_decimal": 59020
14
231
  },
15
- {
16
- "icon_id": "45928027",
17
- "name": "gun-ball-2",
18
- "font_class": "gun-ball-2",
19
- "unicode": "e68b",
20
- "unicode_decimal": 59019
21
- },
22
232
  {
23
233
  "icon_id": "45739939",
24
234
  "name": "thumbnail",
Binary file
Binary file
Binary file
package/lib/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export * from './ctx';
3
3
  export * from './interface';
4
4
  import * as Widgets from './widgets';
5
5
  import * as Features from './features';
6
- export { Widgets, Features };
6
+ import * as Utils from './utils';
7
+ export { Widgets, Features, Utils };
package/lib/index.js CHANGED
@@ -3,4 +3,5 @@ export * from './ctx';
3
3
  export * from './interface';
4
4
  import * as Widgets from './widgets';
5
5
  import * as Features from './features';
6
- export { Widgets, Features };
6
+ import * as Utils from './utils';
7
+ export { Widgets, Features, Utils };
@@ -53,6 +53,8 @@ export type UseCtx = (options: {
53
53
  saveToAlbum: 0 | 1;
54
54
  showPtzControlTip: boolean;
55
55
  screenType: RetAtom<ScreenType>;
56
+ isVerticalFullLayout: RetAtom<boolean>;
57
+ setIsVerticalFullLayout: (value: boolean) => void;
56
58
  recording: RetAtom<boolean>;
57
59
  recordingDisabled: RetAtom<boolean>;
58
60
  mute: RetAtom<boolean>;
@@ -191,9 +193,48 @@ export type MultiCameraLenInfo = {
191
193
  /**
192
194
  * 多目分割协议
193
195
  */
196
+ export type VideoSplitDirection = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
197
+ export type VideoSplitLensType = 0 | 1;
198
+ export type VideoSplitInfoItem = {
199
+ /**
200
+ * 镜头序号,从 1 开始顺序递增
201
+ */
202
+ index: number;
203
+ /**
204
+ * X 维数组,表示在标清、高清等不同分辨率下该摄像头位置信息,格式为 [x, y, w, h]
205
+ */
206
+ res_pos: [number, number, number, number][];
207
+ /**
208
+ * 镜头类型,0:球机;1:枪机。0 表示支持云台控制
209
+ */
210
+ lens_type: VideoSplitLensType;
211
+ /**
212
+ * 是否支持变焦,0:不支持;1:支持
213
+ */
214
+ zoom_enable: 0 | 1;
215
+ /**
216
+ * 支持的控制方向,共 8 个:
217
+ * 0-上,1-右上,2-右,3-右下,4-下,5-左下,6-左,7-左上
218
+ */
219
+ support_directions: VideoSplitDirection[];
220
+ };
221
+ export type VideoSplitAlignInfo = {
222
+ /**
223
+ * 二维数组,排布窗口并列一排放在同一个数组中
224
+ */
225
+ align_group: number[][];
226
+ /**
227
+ * 一维数组,用于标记展示定位框的位置
228
+ */
229
+ localizer_group: number[];
230
+ /**
231
+ * 一维数组,用于标记枪球联动的镜头
232
+ */
233
+ linked_group: number[];
234
+ };
194
235
  export type VideoSplitProtocol = {
195
236
  total_split_num: number;
196
- split_info: any[];
197
- align_info: any[];
237
+ split_info: VideoSplitInfoItem[];
238
+ align_info: VideoSplitAlignInfo;
198
239
  p_v: number;
199
240
  };
@@ -8,6 +8,7 @@ export declare const fullTravelRouteControlId = "fullTravelRouteControl";
8
8
  export declare const verticalScreenId = "verticalScreenId";
9
9
  export declare const ptzControlId = "ptzControlId";
10
10
  export declare const ptzControlTipId = "ptzControlTipId";
11
+ export declare const showFlowLowTipId = "showFlowLowTipId";
11
12
  export declare const fullResolutionId = "fullResolutionId";
12
13
  export declare const batteryId = "Battery";
13
14
  export declare const fullSmallIntercomId = "FullSmallIntercom";
@@ -8,6 +8,7 @@ export const fullTravelRouteControlId = 'fullTravelRouteControl';
8
8
  export const verticalScreenId = 'verticalScreenId';
9
9
  export const ptzControlId = 'ptzControlId';
10
10
  export const ptzControlTipId = 'ptzControlTipId';
11
+ export const showFlowLowTipId = 'showFlowLowTipId';
11
12
  export const fullResolutionId = 'fullResolutionId';
12
13
  export const batteryId = 'Battery';
13
14
  export const fullSmallIntercomId = 'FullSmallIntercom';
package/lib/ui/ui.d.ts CHANGED
@@ -34,6 +34,7 @@ type Props = {
34
34
  onPlayerTap?: (data: any) => void;
35
35
  defaultAutoPlay?: boolean;
36
36
  limitFlow?: boolean;
37
+ showFlowLowTip?: boolean;
37
38
  extend?: Record<string, any>;
38
39
  };
39
40
  export declare const IPCPlayerIntegration: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;