@ray-js/ipc-player-integration 0.0.1-beta-23 → 0.0.1-beta-24
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 +1 -1
- package/lib/ui/ui.d.ts +1 -0
- package/lib/ui/ui.js +7 -2
- package/package.json +2 -2
package/lib/ctx/ctx.js
CHANGED
|
@@ -41,7 +41,7 @@ export const createUseCtx = _ref => {
|
|
|
41
41
|
const [mute] = useAtom(true);
|
|
42
42
|
|
|
43
43
|
// 品牌色 默认
|
|
44
|
-
const [brandColor, setBrandColor] = useAtom('#
|
|
44
|
+
const [brandColor, setBrandColor] = useAtom('#FF592A');
|
|
45
45
|
|
|
46
46
|
// ptz 是否点击
|
|
47
47
|
const [ptzActive, setPtzActive] = useAtom(false);
|
package/lib/ui/ui.d.ts
CHANGED
package/lib/ui/ui.js
CHANGED
|
@@ -44,13 +44,15 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
44
44
|
style,
|
|
45
45
|
CSSVariable = defaultCSSVariable,
|
|
46
46
|
privateState = false,
|
|
47
|
-
deviceOnline = true
|
|
47
|
+
deviceOnline = true,
|
|
48
|
+
brandColor = '#FF592A'
|
|
48
49
|
} = props;
|
|
49
50
|
const instance = getCtxInstance(props.instance, devId);
|
|
50
51
|
const {
|
|
51
52
|
setPlayState,
|
|
52
53
|
setScreenType,
|
|
53
|
-
setFullResolutionActive
|
|
54
|
+
setFullResolutionActive,
|
|
55
|
+
setBrandColor
|
|
54
56
|
} = instance;
|
|
55
57
|
const prevTriggerEvent = useRef();
|
|
56
58
|
const eventRef = useRef();
|
|
@@ -58,6 +60,9 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
58
60
|
if (!eventRef.current) {
|
|
59
61
|
eventRef.current = getEventInstance();
|
|
60
62
|
}
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
setBrandColor(brandColor);
|
|
65
|
+
}, []);
|
|
61
66
|
const {
|
|
62
67
|
event
|
|
63
68
|
} = useContext(UIEventContext);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/ipc-player-integration",
|
|
3
|
-
"version": "0.0.1-beta-
|
|
3
|
+
"version": "0.0.1-beta-24",
|
|
4
4
|
"description": "IPC 播放器功能集成",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"files": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ray-js/ray-ipc-player": "2.0.
|
|
36
|
+
"@ray-js/ray-ipc-player": "2.0.20-beta-1",
|
|
37
37
|
"@ray-js/ray-ipc-utils": "1.1.0-beta-12",
|
|
38
38
|
"@ray-js/ipc-ptz-zoom": "0.0.2-beta-3",
|
|
39
39
|
"clsx": "^1.2.1",
|