@ray-js/ipc-player-integration 0.0.29-beta.8 → 0.0.29
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.composition.d.ts +9 -3
- package/lib/ctx/ctx.composition.js +40 -1
- package/lib/ctx/ctx.js +5 -0
- package/lib/ctx/multiCameraCtx.d.ts +31 -1
- package/lib/ctx/multiCameraCtx.js +60 -16
- package/lib/features/initPlayerWidgets/index.d.ts +7 -1
- package/lib/features/initPlayerWidgets/index.js +14 -11
- package/lib/i18n/index.d.ts +4 -0
- package/lib/i18n/strings.d.ts +2 -0
- package/lib/i18n/strings.js +4 -2
- package/lib/iconfont/iconfont.css +126 -6
- package/lib/iconfont/iconfont.js +13 -13
- package/lib/iconfont/iconfont.json +217 -7
- package/lib/iconfont/iconfont.ttf +0 -0
- package/lib/iconfont/iconfont.woff +0 -0
- package/lib/iconfont/iconfont.woff2 +0 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -1
- package/lib/interface.d.ts +43 -2
- package/lib/ui/constant.d.ts +1 -0
- package/lib/ui/constant.js +1 -0
- package/lib/ui/ui.d.ts +1 -0
- package/lib/ui/ui.js +144 -34
- package/lib/ui/ui.less +2 -2
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +12 -1
- package/lib/utils/videoSplitHelper.d.ts +18 -0
- package/lib/utils/videoSplitHelper.js +48 -0
- package/lib/widgets/flowLowTip/flowLowTip.d.ts +8 -0
- package/lib/widgets/flowLowTip/flowLowTip.js +65 -0
- package/lib/widgets/flowLowTip/flowLowTip.less +73 -0
- package/lib/widgets/flowLowTip/index.d.ts +1 -0
- package/lib/widgets/flowLowTip/index.js +1 -0
- package/lib/widgets/fullScreen/fullScreen.js +2 -3
- package/lib/widgets/fullScreen/fullVoiceIntercom.js +1 -1
- package/lib/widgets/fullScreen/verticalScreen.js +1 -1
- package/lib/widgets/index.d.ts +2 -0
- package/lib/widgets/index.js +3 -1
- package/lib/widgets/multiCamera/index.less +23 -0
- package/lib/widgets/multiCamera/moveablePtzControl.js +16 -7
- package/lib/widgets/multiCamera/tileActions.js +2 -2
- package/lib/widgets/toggleVerticalFull/index.d.ts +1 -0
- package/lib/widgets/toggleVerticalFull/index.js +1 -0
- package/lib/widgets/toggleVerticalFull/toggleVerticalFull.d.ts +8 -0
- package/lib/widgets/toggleVerticalFull/toggleVerticalFull.js +32 -0
- package/lib/widgets/toggleVerticalFull/toggleVerticalFull.less +4 -0
- package/lib/widgets/voiceIntercom/voiceIntercom.js +12 -20
- package/lib/widgets/voiceIntercom/voiceIntercom.less +85 -0
- package/package.json +4 -4
- package/lib/features/initPlayerWidgets/multiCamera.d.ts +0 -8
- package/lib/features/initPlayerWidgets/multiCamera.js +0 -78
- package/lib/widgets/battery/battery.composition.d.ts +0 -159
- package/lib/widgets/voiceIntercom/voiceIntercom.d.ts +0 -95
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TouchEventHandler } from '@ray-js/components/lib/types';
|
|
3
|
-
import './voiceIntercom.less';
|
|
4
|
-
import { PlayerStreamStatus, IntercomMode, PlayState } from '../../interface';
|
|
5
|
-
export declare const VoiceIntercom: React.ForwardRefExoticComponent<{
|
|
6
|
-
IPCPlayerContext: import("../../interface").IpcContext;
|
|
7
|
-
} & {
|
|
8
|
-
devId: string;
|
|
9
|
-
brandColor: import("../../interface").RetAtom<string>;
|
|
10
|
-
verticalMic: import("../../interface").RetAtom<boolean>;
|
|
11
|
-
saveToAlbum: 0 | 1;
|
|
12
|
-
showPtzControlTip: boolean;
|
|
13
|
-
screenType: import("../../interface").RetAtom<import("../../interface").ScreenType>;
|
|
14
|
-
recording: import("../../interface").RetAtom<boolean>;
|
|
15
|
-
recordingDisabled: import("../../interface").RetAtom<boolean>;
|
|
16
|
-
mute: import("../../interface").RetAtom<boolean>;
|
|
17
|
-
intercom: import("../../interface").RetAtom<boolean>;
|
|
18
|
-
intercomMode: import("../../interface").RetAtom<IntercomMode>;
|
|
19
|
-
intercomSupported: import("../../interface").RetAtom<boolean>;
|
|
20
|
-
resolution: import("../../interface").RetAtom<string>;
|
|
21
|
-
resolutionList: import("../../interface").RetAtom<string[]>;
|
|
22
|
-
playState: import("../../interface").RetAtom<PlayState>;
|
|
23
|
-
IPCPlayerInstance: import("../../interface").IpcContext;
|
|
24
|
-
topLeftContent: import("../../interface").RetAtom<import("../../interface").ComponentConfig<any & Record<string, any>>[]>;
|
|
25
|
-
topRightContent: import("../../interface").RetAtom<import("../../interface").ComponentConfig<any & Record<string, any>>[]>;
|
|
26
|
-
bottomLeftContent: import("../../interface").RetAtom<import("../../interface").ComponentConfig<any & Record<string, any>>[]>;
|
|
27
|
-
bottomRightContent: import("../../interface").RetAtom<import("../../interface").ComponentConfig<any & Record<string, any>>[]>;
|
|
28
|
-
absoluteContent: import("../../interface").RetAtom<import("../../interface").ComponentConfig<any & Record<string, any>>[]>;
|
|
29
|
-
ptzControlTipDisabled: import("../../interface").RetAtom<boolean>;
|
|
30
|
-
setPtzControlTipDisabled: (value: boolean) => void;
|
|
31
|
-
setBrandColor: (color: string) => void;
|
|
32
|
-
setVerticalMic: (value: boolean) => void;
|
|
33
|
-
setScreenType: (type: import("../../interface").ScreenType) => void;
|
|
34
|
-
setRecordingDisabled: (type: boolean) => void;
|
|
35
|
-
setResolution: (type: string) => void;
|
|
36
|
-
setResolutionList: (type: string[]) => void;
|
|
37
|
-
setRecording: (value: boolean, onlyUpdateAtom?: boolean | undefined) => Promise<import("../../interface").RecordInfoData>;
|
|
38
|
-
setIntercom: (value: boolean, onlyUpdateAtom?: boolean | undefined) => Promise<boolean>;
|
|
39
|
-
setMute: (value: boolean) => Promise<boolean>;
|
|
40
|
-
changeStreamStatus: (value: PlayerStreamStatus) => void;
|
|
41
|
-
getStreamStatus: () => PlayerStreamStatus;
|
|
42
|
-
setPlayState: (value: PlayState) => void;
|
|
43
|
-
addContent: <T>(type: import("../../interface").ContentPlaceType, config: import("../../interface").ComponentConfig<T> | import("../../interface").ComponentConfig<T>[], position?: number | undefined) => void;
|
|
44
|
-
deleteContent: (type: import("../../interface").ContentPlaceType, id: string) => void;
|
|
45
|
-
getContent: () => {
|
|
46
|
-
topLeft: import("../../interface").ComponentConfig<any & Record<string, any>>[];
|
|
47
|
-
topRight: import("../../interface").ComponentConfig<any & Record<string, any>>[];
|
|
48
|
-
bottomLeft: import("../../interface").ComponentConfig<any & Record<string, any>>[];
|
|
49
|
-
bottomRight: import("../../interface").ComponentConfig<any & Record<string, any>>[];
|
|
50
|
-
absolute: import("../../interface").ComponentConfig<any & Record<string, any>>[];
|
|
51
|
-
};
|
|
52
|
-
updateContent: (type: import("../../interface").ContentPlaceType, data: import("../../interface").ComponentConfig<any & Record<string, any>>[]) => void;
|
|
53
|
-
hasContent: (type: import("../../interface").ContentPlaceType, id: string) => boolean;
|
|
54
|
-
hideContent: (type: import("../../interface").ContentPlaceType, id: string) => void;
|
|
55
|
-
showContent: (type: import("../../interface").ContentPlaceType, id: string) => void;
|
|
56
|
-
toast: import("../../ports.output").Toast;
|
|
57
|
-
event: import("../../interface").EventInstance;
|
|
58
|
-
multiCameraCtx: {
|
|
59
|
-
isSupport: boolean;
|
|
60
|
-
protocol: import("../../interface").VideoSplitProtocol;
|
|
61
|
-
layoutStyle: import("../../interface").RetAtom<import("../../interface").MultiCameraLayoutStyle>;
|
|
62
|
-
screenMode: import("../../interface").RetAtom<import("../../interface").MultiCameraScreenMode>;
|
|
63
|
-
nextLayoutStyle: import("../../interface").RetAtom<import("../../interface").MultiCameraLayoutStyle>;
|
|
64
|
-
selectedLenInfo: import("../../interface").RetAtom<import("../../interface").MultiCameraLenInfo>;
|
|
65
|
-
ptzStatus: import("../../interface").RetAtom<boolean>;
|
|
66
|
-
dpSupportMap: Record<"ptz_control" | "ipc_multi_locate_coor" | "zoom_control" | "ipc_multi_locate_coors" | "ipc_multi_ptz_control" | "ipc_multi_zoom_control", boolean>;
|
|
67
|
-
extendProps: {
|
|
68
|
-
type: number | undefined;
|
|
69
|
-
onSelectVideoIndex: (this: any, event: any) => void;
|
|
70
|
-
onLayoutStatusChanged: (this: any, event: any) => void;
|
|
71
|
-
onLocalizerViewLocated: (this: any, event: any) => Promise<void>;
|
|
72
|
-
onSwipeAtVideoIndex: (this: any, event: any) => Promise<void>;
|
|
73
|
-
};
|
|
74
|
-
setLayoutStyle: (this: unknown, style: import("../../interface").MultiCameraLayoutStyle) => void;
|
|
75
|
-
setScreenMode: (this: unknown, mode: import("../../interface").MultiCameraScreenMode) => void;
|
|
76
|
-
setPtzStatus: (value: boolean | ((prevValue: boolean) => boolean)) => void;
|
|
77
|
-
showLenNames: (this: unknown, value: boolean) => void;
|
|
78
|
-
setNextLayoutStyle: (value: import("../../interface").MultiCameraLayoutStyle | ((prevValue: import("../../interface").MultiCameraLayoutStyle) => import("../../interface").MultiCameraLayoutStyle)) => void;
|
|
79
|
-
getNextLayoutStyle: (this: unknown) => Promise<import("../../interface").MultiCameraLayoutStyle>;
|
|
80
|
-
};
|
|
81
|
-
} & {
|
|
82
|
-
style?: React.CSSProperties | undefined;
|
|
83
|
-
intercomClassName?: string | undefined;
|
|
84
|
-
iconClassName?: string | undefined;
|
|
85
|
-
iconImageClassName?: string | undefined;
|
|
86
|
-
icon?: string | React.ReactNode;
|
|
87
|
-
widthScale?: number | undefined;
|
|
88
|
-
heightScale?: number | undefined;
|
|
89
|
-
onTouchStart?: TouchEventHandler['onTouchStart'];
|
|
90
|
-
onTouchEnd?: TouchEventHandler['onTouchEnd'];
|
|
91
|
-
talkingColor?: string | undefined;
|
|
92
|
-
bgColor?: string | undefined;
|
|
93
|
-
mode?: "circle" | "verticalSmall" | "fullSmall" | undefined;
|
|
94
|
-
disabled?: boolean | undefined;
|
|
95
|
-
} & React.RefAttributes<unknown>>;
|