@ray-js/ipc-player-integration 0.0.1-beta-76 → 0.0.1-beta-78

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.
@@ -6,8 +6,7 @@
6
6
  }
7
7
 
8
8
  .icon-panel {
9
- font-family: "icon-panel" !important;
10
- font-size: 16px;
9
+ font-family: "icon-panel";
11
10
  font-style: normal;
12
11
  -webkit-font-smoothing: antialiased;
13
12
  -moz-osx-font-smoothing: grayscale;
package/lib/ui/ui.js CHANGED
@@ -440,11 +440,20 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
440
440
  console.log(`onCameraNotifyWeakNetwork: ${JSON.stringify(data)}`);
441
441
  },
442
442
  clarity: decodeClarityDic[resolution],
443
- onZoomChange: onZoomChange,
444
- objectFit: screenType === 'vertical' ? playerFit === 'contain' ? 'fillCrop' : 'contain' : landscapeMode === 'standard' ? 'contain' : 'fillCrop',
445
- scaleMultiple: 0
446
- // objectFit="fillCrop"
447
- // scaleMultiple={-100}
443
+ onZoomChange: onZoomChange
444
+ // objectFit={
445
+ // screenType === 'vertical'
446
+ // ? playerFit === 'contain'
447
+ // ? 'fillCrop'
448
+ // : 'contain'
449
+ // : landscapeMode === 'standard'
450
+ // ? 'contain'
451
+ // : 'fillCrop'
452
+ // }
453
+ // scaleMultiple={0}
454
+ ,
455
+ objectFit: "fillCrop",
456
+ scaleMultiple: scaleMultiple
448
457
  // 安卓横屏问题
449
458
  // ptzControllable={screenType === 'vertical'}
450
459
  ,
@@ -53,6 +53,5 @@
53
53
  font-size: calc(12px * var(--ipc-player-size-scale, 1));
54
54
  line-height: calc(12px * var(--ipc-player-size-scale, 1));
55
55
  color: var(--fontColor);
56
- font-family: 'Manrope';
57
56
  font-weight: 600;
58
57
  }
@@ -76,7 +76,7 @@ export function FullScreen(props) {
76
76
  addContent('absolute', {
77
77
  id: fullTravelRouteControlId,
78
78
  content: props => /*#__PURE__*/React.createElement(FullTravelRouteControl, props),
79
- absoluteContentClassName: 'ipc-player-plugin-full-screen-voice-wrap',
79
+ absoluteContentClassName: 'ipc-player-plugin-remote-control-wrap',
80
80
  initProps: _objectSpread({}, props)
81
81
  });
82
82
  showContent('bottomLeft', 'FullSmallIntercom');
@@ -8,6 +8,15 @@
8
8
  }
9
9
 
10
10
  .ipc-player-plugin-full-screen-voice-wrap {
11
+ position: absolute;
12
+ // bottom: calc(24px * var(--ipc-player-size-scale, 1));
13
+ top: 50%;
14
+ transform: translateY(-50%);
15
+ right: calc(50px * var(--ipc-player-size-scale, 1));
16
+ z-index: 340;
17
+ }
18
+
19
+ .ipc-player-plugin-remote-control-wrap {
11
20
  position: absolute;
12
21
  bottom: calc(24px * var(--ipc-player-size-scale, 1));
13
22
  right: calc(50px * var(--ipc-player-size-scale, 1));
@@ -22,12 +31,6 @@
22
31
  width: auto;
23
32
  }
24
33
 
25
- .ipc-player-plugin-full-screen-voice-disappear {
26
- width: 0;
27
- height: 0;
28
- overflow: hidden;
29
- }
30
-
31
34
  .ipc-plugin-full-travel-route-control {
32
35
  // width: calc(172px * var(--ipc-player-size-scale, 1));
33
36
  // height: calc(172px * var(--ipc-player-size-scale, 1));
@@ -42,9 +42,8 @@ export function FullVoiceIntercom(props) {
42
42
  return null;
43
43
  }
44
44
  return /*#__PURE__*/React.createElement(View, {
45
- className: clsx('ipc-player-plugin-full-screen-voice', {
46
- 'ipc-player-plugin-full-screen-voice-hide': isPtzActive || shouldHide,
47
- 'ipc-player-plugin-full-screen-voice-disappear': screenType === 'vertical'
45
+ className: clsx('ipc-player-plugin-full-screen-voice', 'ipc-plugin-absolute-move-in-right', {
46
+ 'ipc-plugin-absolute-move-in-right-hide': isPtzActive || shouldHide || screenType === 'vertical'
48
47
  })
49
48
  }, /*#__PURE__*/React.createElement(VoiceIntercom, _extends({}, props, {
50
49
  talkingColor: "#FFFFFF",
@@ -101,7 +101,7 @@ export function MoveInterActiveControlUI(props) {
101
101
  }, /*#__PURE__*/React.createElement(View, {
102
102
  className: clsx('ipc-player-plugin-active-control-item-icon-mask')
103
103
  }), /*#__PURE__*/React.createElement(View, {
104
- className: clsx('icon-panel', item.iconName)
104
+ className: clsx('icon-panel', item.iconName, 'ipc-player-plugin-interactive-icon')
105
105
  })), /*#__PURE__*/React.createElement(View, {
106
106
  className: clsx('ipc-player-plugin-active-control-item-title')
107
107
  }, item.label))))));
@@ -34,6 +34,7 @@
34
34
  color: var(--activeColor);
35
35
  .ipc-player-plugin-active-control-item-icon {
36
36
  color: var(--activeColor);
37
+ font-size: calc(16px * var(--ipc-player-size-scale, 1));
37
38
  .ipc-player-plugin-active-control-item-icon-mask {
38
39
  background: var(--activeColor);
39
40
  opacity: 0.05;
@@ -68,4 +69,8 @@
68
69
  white-space: nowrap; /* 防止文本换行 */
69
70
  overflow: hidden; /* 隐藏溢出文本 */
70
71
  text-overflow: ellipsis; /* 使用省略号表示溢出文本 */
72
+ text-align: center;
73
+ }
74
+ .ipc-player-plugin-interactive-icon {
75
+ font-size: calc(20px * var(--ipc-player-size-scale, 1));;
71
76
  }
@@ -42,7 +42,6 @@
42
42
  margin-left: calc(8px * var(--ipc-player-size-scale, 1));;
43
43
  display: flex;
44
44
  align-items: center;
45
- font-family: Manrope !important;
46
45
  .ipc-player-plugin-record-video-toast-time-warp {
47
46
  text-align: center;
48
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.1-beta-76",
3
+ "version": "0.0.1-beta-78",
4
4
  "description": "IPC 播放器功能集成",
5
5
  "main": "lib/index",
6
6
  "files": [