@ray-js/ipc-player-integration 0.0.28 → 0.0.29-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.
- package/lib/ctx/ctx.js +10 -2
- package/lib/ctx/multiCameraCtx.d.ts +73 -0
- package/lib/ctx/multiCameraCtx.js +176 -0
- package/lib/features/initPlayerWidgets/index.d.ts +5 -4
- package/lib/features/initPlayerWidgets/index.js +7 -0
- package/lib/features/initPlayerWidgets/multiCamera.d.ts +8 -0
- package/lib/features/initPlayerWidgets/multiCamera.js +78 -0
- package/lib/i18n/index.d.ts +20 -0
- package/lib/i18n/strings.d.ts +10 -0
- package/lib/i18n/strings.js +12 -2
- package/lib/iconfont/iconfont.css +197 -4
- package/lib/iconfont/iconfont.js +13 -13
- package/lib/iconfont/iconfont.json +336 -0
- package/lib/iconfont/iconfont.ttf +0 -0
- package/lib/iconfont/iconfont.woff +0 -0
- package/lib/iconfont/iconfont.woff2 +0 -0
- package/lib/interface.d.ts +90 -4
- package/lib/interface.js +56 -1
- package/lib/ui/constant.d.ts +6 -0
- package/lib/ui/constant.js +6 -0
- package/lib/ui/ui.js +187 -17
- package/lib/ui/ui.less +19 -21
- package/lib/utils/storage/index.d.ts +1 -0
- package/lib/utils/storage/index.js +8 -1
- package/lib/widgets/battery/battery.composition.d.ts +60 -4
- package/lib/widgets/fullScreen/fullScreen.js +5 -3
- package/lib/widgets/index.d.ts +2 -0
- package/lib/widgets/index.js +3 -1
- package/lib/widgets/multiCamera/constants.d.ts +1 -0
- package/lib/widgets/multiCamera/constants.js +1 -0
- package/lib/widgets/multiCamera/index.d.ts +8 -0
- package/lib/widgets/multiCamera/index.js +8 -0
- package/lib/widgets/multiCamera/index.less +214 -0
- package/lib/widgets/multiCamera/landscapeTip.d.ts +6 -0
- package/lib/widgets/multiCamera/landscapeTip.js +40 -0
- package/lib/widgets/multiCamera/moveView/index.d.ts +9 -0
- package/lib/widgets/multiCamera/moveView/index.js +22 -0
- package/lib/widgets/multiCamera/moveView/tyComponent/index.d.ts +1 -0
- package/lib/widgets/multiCamera/moveView/tyComponent/index.js +42 -0
- package/lib/widgets/multiCamera/moveView/tyComponent/index.json +3 -0
- package/lib/widgets/multiCamera/moveView/tyComponent/index.tyml +8 -0
- package/lib/widgets/multiCamera/moveView/tyComponent/index.tyss +4 -0
- package/lib/widgets/multiCamera/moveView/utils.d.ts +1 -0
- package/lib/widgets/multiCamera/moveView/utils.js +29 -0
- package/lib/widgets/multiCamera/moveablePtzControl.d.ts +22 -0
- package/lib/widgets/multiCamera/moveablePtzControl.js +302 -0
- package/lib/widgets/multiCamera/multiPtz.d.ts +11 -0
- package/lib/widgets/multiCamera/multiPtz.js +46 -0
- package/lib/widgets/multiCamera/ptzMoveableTip.d.ts +8 -0
- package/lib/widgets/multiCamera/ptzMoveableTip.js +66 -0
- package/lib/widgets/multiCamera/switchLayout.d.ts +8 -0
- package/lib/widgets/multiCamera/switchLayout.js +57 -0
- package/lib/widgets/multiCamera/tileActions.d.ts +6 -0
- package/lib/widgets/multiCamera/tileActions.js +15 -0
- package/lib/widgets/multiCamera/tileMultiPtz.d.ts +11 -0
- package/lib/widgets/multiCamera/tileMultiPtz.js +48 -0
- package/lib/widgets/multiCamera/tileSwitchLayout.d.ts +8 -0
- package/lib/widgets/multiCamera/tileSwitchLayout.js +38 -0
- package/lib/widgets/multiCamera/tileTip.d.ts +6 -0
- package/lib/widgets/multiCamera/tileTip.js +50 -0
- package/lib/widgets/ptz/ptz.less +15 -8
- package/lib/widgets/smallIntercom/index.d.ts +8 -0
- package/lib/widgets/smallIntercom/index.js +38 -0
- package/lib/widgets/smallIntercom/index.less +4 -0
- package/lib/widgets/voiceIntercom/voiceIntercom.d.ts +33 -2
- package/package.json +6 -5
|
@@ -5,6 +5,342 @@
|
|
|
5
5
|
"css_prefix_text": "icon-panel-",
|
|
6
6
|
"description": "IPC 小程序公版",
|
|
7
7
|
"glyphs": [
|
|
8
|
+
{
|
|
9
|
+
"icon_id": "45928176",
|
|
10
|
+
"name": "gun-ball",
|
|
11
|
+
"font_class": "gun-ball",
|
|
12
|
+
"unicode": "e68c",
|
|
13
|
+
"unicode_decimal": 59020
|
|
14
|
+
},
|
|
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
|
+
{
|
|
23
|
+
"icon_id": "45739939",
|
|
24
|
+
"name": "thumbnail",
|
|
25
|
+
"font_class": "thumbnail",
|
|
26
|
+
"unicode": "e67f",
|
|
27
|
+
"unicode_decimal": 59007
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"icon_id": "45739938",
|
|
31
|
+
"name": "landscape-thumbnail",
|
|
32
|
+
"font_class": "landscape-thumbnail",
|
|
33
|
+
"unicode": "e680",
|
|
34
|
+
"unicode_decimal": 59008
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"icon_id": "45739940",
|
|
38
|
+
"name": "expand",
|
|
39
|
+
"font_class": "expand",
|
|
40
|
+
"unicode": "e681",
|
|
41
|
+
"unicode_decimal": 59009
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"icon_id": "45739936",
|
|
45
|
+
"name": "tile",
|
|
46
|
+
"font_class": "tile",
|
|
47
|
+
"unicode": "e682",
|
|
48
|
+
"unicode_decimal": 59010
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"icon_id": "45739934",
|
|
52
|
+
"name": "landscape-grid",
|
|
53
|
+
"font_class": "landscape-grid",
|
|
54
|
+
"unicode": "e683",
|
|
55
|
+
"unicode_decimal": 59011
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"icon_id": "45739937",
|
|
59
|
+
"name": "pin",
|
|
60
|
+
"font_class": "pin",
|
|
61
|
+
"unicode": "e684",
|
|
62
|
+
"unicode_decimal": 59012
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"icon_id": "45739933",
|
|
66
|
+
"name": "arrow-expand",
|
|
67
|
+
"font_class": "arrow-expand",
|
|
68
|
+
"unicode": "e685",
|
|
69
|
+
"unicode_decimal": 59013
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"icon_id": "45739935",
|
|
73
|
+
"name": "window-close",
|
|
74
|
+
"font_class": "window-close",
|
|
75
|
+
"unicode": "e686",
|
|
76
|
+
"unicode_decimal": 59014
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"icon_id": "45739932",
|
|
80
|
+
"name": "landscape-tile",
|
|
81
|
+
"font_class": "landscape-tile",
|
|
82
|
+
"unicode": "e687",
|
|
83
|
+
"unicode_decimal": 59015
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"icon_id": "45739930",
|
|
87
|
+
"name": "pip",
|
|
88
|
+
"font_class": "pip",
|
|
89
|
+
"unicode": "e688",
|
|
90
|
+
"unicode_decimal": 59016
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"icon_id": "45739929",
|
|
94
|
+
"name": "landscape-new",
|
|
95
|
+
"font_class": "landscape-new",
|
|
96
|
+
"unicode": "e689",
|
|
97
|
+
"unicode_decimal": 59017
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"icon_id": "45739931",
|
|
101
|
+
"name": "collapse",
|
|
102
|
+
"font_class": "collapse",
|
|
103
|
+
"unicode": "e68a",
|
|
104
|
+
"unicode_decimal": 59018
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"icon_id": "45596361",
|
|
108
|
+
"name": "多选",
|
|
109
|
+
"font_class": "duoxuan",
|
|
110
|
+
"unicode": "e679",
|
|
111
|
+
"unicode_decimal": 59001
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"icon_id": "45596362",
|
|
115
|
+
"name": "删除",
|
|
116
|
+
"font_class": "shanchu",
|
|
117
|
+
"unicode": "e678",
|
|
118
|
+
"unicode_decimal": 59000
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"icon_id": "45596327",
|
|
122
|
+
"name": "筛选 ",
|
|
123
|
+
"font_class": "shaixuan",
|
|
124
|
+
"unicode": "e677",
|
|
125
|
+
"unicode_decimal": 58999
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"icon_id": "45488134",
|
|
129
|
+
"name": "close-voice",
|
|
130
|
+
"font_class": "close-voice",
|
|
131
|
+
"unicode": "e676",
|
|
132
|
+
"unicode_decimal": 58998
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"icon_id": "45477383",
|
|
136
|
+
"name": "cruise-plan",
|
|
137
|
+
"font_class": "cruise-plan",
|
|
138
|
+
"unicode": "e675",
|
|
139
|
+
"unicode_decimal": 58997
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"icon_id": "45410172",
|
|
143
|
+
"name": "stop-record",
|
|
144
|
+
"font_class": "stop-record",
|
|
145
|
+
"unicode": "e674",
|
|
146
|
+
"unicode_decimal": 58996
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"icon_id": "45410145",
|
|
150
|
+
"name": "find-pet",
|
|
151
|
+
"font_class": "find-pet",
|
|
152
|
+
"unicode": "e673",
|
|
153
|
+
"unicode_decimal": 58995
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"icon_id": "45395714",
|
|
157
|
+
"name": "pet-voice-custom",
|
|
158
|
+
"font_class": "pet-voice-custom",
|
|
159
|
+
"unicode": "e672",
|
|
160
|
+
"unicode_decimal": 58994
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"icon_id": "45395409",
|
|
164
|
+
"name": "voice-list",
|
|
165
|
+
"font_class": "voice-list",
|
|
166
|
+
"unicode": "e671",
|
|
167
|
+
"unicode_decimal": 58993
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"icon_id": "45395346",
|
|
171
|
+
"name": "again",
|
|
172
|
+
"font_class": "again",
|
|
173
|
+
"unicode": "e670",
|
|
174
|
+
"unicode_decimal": 58992
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"icon_id": "45395363",
|
|
178
|
+
"name": "select",
|
|
179
|
+
"font_class": "select",
|
|
180
|
+
"unicode": "e66f",
|
|
181
|
+
"unicode_decimal": 58991
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"icon_id": "45395267",
|
|
185
|
+
"name": "enable-voice",
|
|
186
|
+
"font_class": "enable-voice",
|
|
187
|
+
"unicode": "e66e",
|
|
188
|
+
"unicode_decimal": 58990
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"icon_id": "45395173",
|
|
192
|
+
"name": "not-disturb",
|
|
193
|
+
"font_class": "not-disturb",
|
|
194
|
+
"unicode": "e66d",
|
|
195
|
+
"unicode_decimal": 58989
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"icon_id": "45395065",
|
|
199
|
+
"name": "pet-voice",
|
|
200
|
+
"font_class": "pet-voice",
|
|
201
|
+
"unicode": "e66c",
|
|
202
|
+
"unicode_decimal": 58988
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"icon_id": "45231648",
|
|
206
|
+
"name": "verify-access",
|
|
207
|
+
"font_class": "verify-access",
|
|
208
|
+
"unicode": "e644",
|
|
209
|
+
"unicode_decimal": 58948
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"icon_id": "45231647",
|
|
213
|
+
"name": "access-list",
|
|
214
|
+
"font_class": "access-list",
|
|
215
|
+
"unicode": "e662",
|
|
216
|
+
"unicode_decimal": 58978
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"icon_id": "45231646",
|
|
220
|
+
"name": "access-control",
|
|
221
|
+
"font_class": "access-control",
|
|
222
|
+
"unicode": "e663",
|
|
223
|
+
"unicode_decimal": 58979
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"icon_id": "45231645",
|
|
227
|
+
"name": "access-schedule",
|
|
228
|
+
"font_class": "access-schedule",
|
|
229
|
+
"unicode": "e664",
|
|
230
|
+
"unicode_decimal": 58980
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"icon_id": "45231643",
|
|
234
|
+
"name": "always-open",
|
|
235
|
+
"font_class": "always-open",
|
|
236
|
+
"unicode": "e665",
|
|
237
|
+
"unicode_decimal": 58981
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"icon_id": "45231644",
|
|
241
|
+
"name": "bidirectional-access",
|
|
242
|
+
"font_class": "bidirectional-access",
|
|
243
|
+
"unicode": "e666",
|
|
244
|
+
"unicode_decimal": 58982
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"icon_id": "45231640",
|
|
248
|
+
"name": "open-door",
|
|
249
|
+
"font_class": "open-door",
|
|
250
|
+
"unicode": "e667",
|
|
251
|
+
"unicode_decimal": 58983
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"icon_id": "45231642",
|
|
255
|
+
"name": "locked",
|
|
256
|
+
"font_class": "locked",
|
|
257
|
+
"unicode": "e668",
|
|
258
|
+
"unicode_decimal": 58984
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"icon_id": "45231641",
|
|
262
|
+
"name": "exit-only",
|
|
263
|
+
"font_class": "exit-only",
|
|
264
|
+
"unicode": "e669",
|
|
265
|
+
"unicode_decimal": 58985
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"icon_id": "45231638",
|
|
269
|
+
"name": "close-door",
|
|
270
|
+
"font_class": "close-door",
|
|
271
|
+
"unicode": "e66a",
|
|
272
|
+
"unicode_decimal": 58986
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"icon_id": "45231639",
|
|
276
|
+
"name": "entry-only",
|
|
277
|
+
"font_class": "entry-only",
|
|
278
|
+
"unicode": "e66b",
|
|
279
|
+
"unicode_decimal": 58987
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"icon_id": "44849976",
|
|
283
|
+
"name": "feature-siren",
|
|
284
|
+
"font_class": "feature-siren",
|
|
285
|
+
"unicode": "e661",
|
|
286
|
+
"unicode_decimal": 58977
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"icon_id": "44719490",
|
|
290
|
+
"name": "shared-permission",
|
|
291
|
+
"font_class": "shared-permission",
|
|
292
|
+
"unicode": "e660",
|
|
293
|
+
"unicode_decimal": 58976
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"icon_id": "43959694",
|
|
297
|
+
"name": "ptz_collect_add",
|
|
298
|
+
"font_class": "ptz_collect_add",
|
|
299
|
+
"unicode": "e65f",
|
|
300
|
+
"unicode_decimal": 58975
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"icon_id": "43936734",
|
|
304
|
+
"name": "ptz-collect",
|
|
305
|
+
"font_class": "ptz-collect",
|
|
306
|
+
"unicode": "e65e",
|
|
307
|
+
"unicode_decimal": 58974
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"icon_id": "43898394",
|
|
311
|
+
"name": "success",
|
|
312
|
+
"font_class": "success",
|
|
313
|
+
"unicode": "e65d",
|
|
314
|
+
"unicode_decimal": 58973
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"icon_id": "43898318",
|
|
318
|
+
"name": "failure",
|
|
319
|
+
"font_class": "failure",
|
|
320
|
+
"unicode": "e65c",
|
|
321
|
+
"unicode_decimal": 58972
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"icon_id": "43869090",
|
|
325
|
+
"name": "pause",
|
|
326
|
+
"font_class": "pause",
|
|
327
|
+
"unicode": "e65b",
|
|
328
|
+
"unicode_decimal": 58971
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"icon_id": "43869002",
|
|
332
|
+
"name": "recharge-1",
|
|
333
|
+
"font_class": "recharge-1",
|
|
334
|
+
"unicode": "e659",
|
|
335
|
+
"unicode_decimal": 58969
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"icon_id": "43869053",
|
|
339
|
+
"name": "playing",
|
|
340
|
+
"font_class": "playing",
|
|
341
|
+
"unicode": "e65a",
|
|
342
|
+
"unicode_decimal": 58970
|
|
343
|
+
},
|
|
8
344
|
{
|
|
9
345
|
"icon_id": "43756363",
|
|
10
346
|
"name": "charging",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/interface.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PrimitiveAtom } from 'jotai';
|
|
3
3
|
import type { Toast, IntercomMode } from './ports.output';
|
|
4
|
+
import { useMultiCameraCtx } from './ctx/multiCameraCtx';
|
|
4
5
|
export { IntercomMode } from './ports.output';
|
|
5
6
|
type WithInitialValue<Value> = {
|
|
6
7
|
init: Value;
|
|
@@ -10,7 +11,7 @@ export type IpcContext = {
|
|
|
10
11
|
};
|
|
11
12
|
export type RetAtom<T> = PrimitiveAtom<T> & WithInitialValue<T>;
|
|
12
13
|
export type ScreenType = 'full' | 'vertical';
|
|
13
|
-
export type WidgetId = 'BatteryFull' | 'TempHumidity' | 'VideoBitKBP' | 'FullSmallIntercom' | 'Screenshot' | 'RecordVideo' | 'Muted' | 'VerticalSmallIntercom' | 'Ptz' | 'Resolution' | 'FullScreen';
|
|
14
|
+
export type WidgetId = 'BatteryFull' | 'TempHumidity' | 'VideoBitKBP' | 'FullSmallIntercom' | 'Screenshot' | 'RecordVideo' | 'Muted' | 'VerticalSmallIntercom' | 'Ptz' | 'Resolution' | 'FullScreen' | 'moveablePtzControlId';
|
|
14
15
|
export declare const enum PlayerStreamStatus {
|
|
15
16
|
UnknownException = -1000,
|
|
16
17
|
ConnectSuccess = 1001,
|
|
@@ -44,6 +45,7 @@ export type UseCtx = (options: {
|
|
|
44
45
|
initAbsoluteContent?: ComponentConfig[];
|
|
45
46
|
saveToAlbum?: 0 | 1;
|
|
46
47
|
showPtzControlTip?: boolean;
|
|
48
|
+
videoSplitProtocol?: VideoSplitProtocol;
|
|
47
49
|
}) => {
|
|
48
50
|
devId: string;
|
|
49
51
|
brandColor: RetAtom<string>;
|
|
@@ -66,8 +68,8 @@ export type UseCtx = (options: {
|
|
|
66
68
|
bottomLeftContent: RetAtom<ComponentConfig[]>;
|
|
67
69
|
bottomRightContent: RetAtom<ComponentConfig[]>;
|
|
68
70
|
absoluteContent: RetAtom<ComponentConfig[]>;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
ptzControlTipDisabled: RetAtom<boolean>;
|
|
72
|
+
setPtzControlTipDisabled: (value: boolean) => void;
|
|
71
73
|
setBrandColor: (color: string) => void;
|
|
72
74
|
setVerticalMic: (value: boolean) => void;
|
|
73
75
|
setScreenType: (type: ScreenType) => void;
|
|
@@ -82,13 +84,20 @@ export type UseCtx = (options: {
|
|
|
82
84
|
setPlayState: (value: PlayState) => void;
|
|
83
85
|
addContent: <T>(type: ContentPlaceType, config: ComponentConfig<T> | ComponentConfig<T>[], position?: number) => void;
|
|
84
86
|
deleteContent: (type: ContentPlaceType, id: string) => void;
|
|
85
|
-
getContent: () =>
|
|
87
|
+
getContent: () => {
|
|
88
|
+
topLeft: ComponentConfig[];
|
|
89
|
+
topRight: ComponentConfig[];
|
|
90
|
+
bottomLeft: ComponentConfig[];
|
|
91
|
+
bottomRight: ComponentConfig[];
|
|
92
|
+
absolute: ComponentConfig[];
|
|
93
|
+
};
|
|
86
94
|
updateContent: (type: ContentPlaceType, data: ComponentConfig[]) => void;
|
|
87
95
|
hasContent: (type: ContentPlaceType, id: string) => boolean;
|
|
88
96
|
hideContent: (type: ContentPlaceType, id: string) => void;
|
|
89
97
|
showContent: (type: ContentPlaceType, id: string) => void;
|
|
90
98
|
toast: Toast;
|
|
91
99
|
event: EventInstance;
|
|
100
|
+
multiCameraCtx: ReturnType<typeof useMultiCameraCtx>;
|
|
92
101
|
};
|
|
93
102
|
export type ComponentConfig<T = ReturnType<UseCtx> & Record<string, any>> = {
|
|
94
103
|
id: string;
|
|
@@ -97,6 +106,7 @@ export type ComponentConfig<T = ReturnType<UseCtx> & Record<string, any>> = {
|
|
|
97
106
|
absolutePosition?: React.CSSProperties;
|
|
98
107
|
absoluteContentClassName?: string;
|
|
99
108
|
absoluteContentStyle?: React.CSSProperties;
|
|
109
|
+
absoluteNoCoverView?: boolean;
|
|
100
110
|
hidden?: boolean;
|
|
101
111
|
};
|
|
102
112
|
export type ComponentConfigProps = {
|
|
@@ -111,3 +121,79 @@ export type RecordInfoData = boolean | {
|
|
|
111
121
|
filePath: string;
|
|
112
122
|
thumbPath: string;
|
|
113
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* 多目屏幕模式
|
|
126
|
+
*/
|
|
127
|
+
export declare enum MultiCameraScreenMode {
|
|
128
|
+
/**
|
|
129
|
+
* 短屏
|
|
130
|
+
*/
|
|
131
|
+
short = 0,
|
|
132
|
+
/**
|
|
133
|
+
* 全屏
|
|
134
|
+
*/
|
|
135
|
+
full = 1,
|
|
136
|
+
/**
|
|
137
|
+
* 横屏
|
|
138
|
+
*/
|
|
139
|
+
landscape = 2
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* 多目布局样式
|
|
143
|
+
*/
|
|
144
|
+
export declare enum MultiCameraLayoutStyle {
|
|
145
|
+
/**
|
|
146
|
+
* 无效布局样式
|
|
147
|
+
*/
|
|
148
|
+
invalid = -1,
|
|
149
|
+
/**
|
|
150
|
+
* 画中画
|
|
151
|
+
*/
|
|
152
|
+
pip = 0,
|
|
153
|
+
/**
|
|
154
|
+
* 平铺
|
|
155
|
+
*/
|
|
156
|
+
tile = 1,
|
|
157
|
+
/**
|
|
158
|
+
* 品字、宫格
|
|
159
|
+
*/
|
|
160
|
+
grid = 2,
|
|
161
|
+
/**
|
|
162
|
+
* 缩略图
|
|
163
|
+
*/
|
|
164
|
+
thumbnail = 3
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* 多目选中镜头信息
|
|
168
|
+
*/
|
|
169
|
+
export type MultiCameraLenInfo = {
|
|
170
|
+
/**
|
|
171
|
+
* 镜头索引
|
|
172
|
+
*/
|
|
173
|
+
index: number;
|
|
174
|
+
/**
|
|
175
|
+
* 镜头名
|
|
176
|
+
*/
|
|
177
|
+
videoName: string;
|
|
178
|
+
/**
|
|
179
|
+
* 是否支持 PTZ
|
|
180
|
+
*/
|
|
181
|
+
supportPTZ: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* 是否支持 Zoom
|
|
184
|
+
*/
|
|
185
|
+
supportZoom: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* 是否支持 Localizer
|
|
188
|
+
*/
|
|
189
|
+
supportLocalizer: boolean;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* 多目分割协议
|
|
193
|
+
*/
|
|
194
|
+
export type VideoSplitProtocol = {
|
|
195
|
+
total_split_num: number;
|
|
196
|
+
split_info: any[];
|
|
197
|
+
align_info: any[];
|
|
198
|
+
p_v: number;
|
|
199
|
+
};
|
package/lib/interface.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
|
|
1
3
|
export { IntercomMode } from './ports.output';
|
|
2
4
|
export let PlayerStreamStatus = /*#__PURE__*/function (PlayerStreamStatus) {
|
|
3
5
|
PlayerStreamStatus[PlayerStreamStatus["UnknownException"] = -1000] = "UnknownException";
|
|
@@ -26,4 +28,57 @@ export let PlayState = /*#__PURE__*/function (PlayState) {
|
|
|
26
28
|
PlayState[PlayState["PLAYING"] = 1] = "PLAYING";
|
|
27
29
|
PlayState[PlayState["PAUSE"] = 2] = "PAUSE";
|
|
28
30
|
return PlayState;
|
|
29
|
-
}({});
|
|
31
|
+
}({});
|
|
32
|
+
/**
|
|
33
|
+
* 多目屏幕模式
|
|
34
|
+
*/
|
|
35
|
+
export let MultiCameraScreenMode = /*#__PURE__*/function (MultiCameraScreenMode) {
|
|
36
|
+
/**
|
|
37
|
+
* 短屏
|
|
38
|
+
*/
|
|
39
|
+
MultiCameraScreenMode[MultiCameraScreenMode["short"] = 0] = "short";
|
|
40
|
+
/**
|
|
41
|
+
* 全屏
|
|
42
|
+
*/
|
|
43
|
+
MultiCameraScreenMode[MultiCameraScreenMode["full"] = 1] = "full";
|
|
44
|
+
/**
|
|
45
|
+
* 横屏
|
|
46
|
+
*/
|
|
47
|
+
MultiCameraScreenMode[MultiCameraScreenMode["landscape"] = 2] = "landscape";
|
|
48
|
+
return MultiCameraScreenMode;
|
|
49
|
+
}({});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 多目布局样式
|
|
53
|
+
*/
|
|
54
|
+
export let MultiCameraLayoutStyle = /*#__PURE__*/function (MultiCameraLayoutStyle) {
|
|
55
|
+
/**
|
|
56
|
+
* 无效布局样式
|
|
57
|
+
*/
|
|
58
|
+
MultiCameraLayoutStyle[MultiCameraLayoutStyle["invalid"] = -1] = "invalid";
|
|
59
|
+
/**
|
|
60
|
+
* 画中画
|
|
61
|
+
*/
|
|
62
|
+
MultiCameraLayoutStyle[MultiCameraLayoutStyle["pip"] = 0] = "pip";
|
|
63
|
+
/**
|
|
64
|
+
* 平铺
|
|
65
|
+
*/
|
|
66
|
+
MultiCameraLayoutStyle[MultiCameraLayoutStyle["tile"] = 1] = "tile";
|
|
67
|
+
/**
|
|
68
|
+
* 品字、宫格
|
|
69
|
+
*/
|
|
70
|
+
MultiCameraLayoutStyle[MultiCameraLayoutStyle["grid"] = 2] = "grid";
|
|
71
|
+
/**
|
|
72
|
+
* 缩略图
|
|
73
|
+
*/
|
|
74
|
+
MultiCameraLayoutStyle[MultiCameraLayoutStyle["thumbnail"] = 3] = "thumbnail";
|
|
75
|
+
return MultiCameraLayoutStyle;
|
|
76
|
+
}({});
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* 多目选中镜头信息
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 多目分割协议
|
|
84
|
+
*/
|
package/lib/ui/constant.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ export declare const fullResolutionId = "fullResolutionId";
|
|
|
12
12
|
export declare const batteryId = "Battery";
|
|
13
13
|
export declare const fullSmallIntercomId = "FullSmallIntercom";
|
|
14
14
|
export declare const changeIgnoreHideStopPreview = "changeIgnoreHideStopPreview";
|
|
15
|
+
export declare const tileActionsId = "tileActionsId";
|
|
16
|
+
export declare const moveablePtzControlId = "moveablePtzControlId";
|
|
17
|
+
export declare const tileTipId = "tileTipId";
|
|
18
|
+
export declare const ptzMoveableTipId = "ptzMoveableTipId";
|
|
19
|
+
export declare const landscapeTipId = "landscapeTipId";
|
|
20
|
+
export declare const multiPtzId = "multiPtzId";
|
|
15
21
|
export declare const decodeClarityDic: {
|
|
16
22
|
SS: string;
|
|
17
23
|
SD: string;
|
package/lib/ui/constant.js
CHANGED
|
@@ -12,6 +12,12 @@ export const fullResolutionId = 'fullResolutionId';
|
|
|
12
12
|
export const batteryId = 'Battery';
|
|
13
13
|
export const fullSmallIntercomId = 'FullSmallIntercom';
|
|
14
14
|
export const changeIgnoreHideStopPreview = 'changeIgnoreHideStopPreview';
|
|
15
|
+
export const tileActionsId = 'tileActionsId';
|
|
16
|
+
export const moveablePtzControlId = 'moveablePtzControlId';
|
|
17
|
+
export const tileTipId = 'tileTipId';
|
|
18
|
+
export const ptzMoveableTipId = 'ptzMoveableTipId';
|
|
19
|
+
export const landscapeTipId = 'landscapeTipId';
|
|
20
|
+
export const multiPtzId = 'multiPtzId';
|
|
15
21
|
export const decodeClarityDic = {
|
|
16
22
|
SS: 'ss',
|
|
17
23
|
// 省流量
|