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

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/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
  ,
@@ -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",
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-77",
4
4
  "description": "IPC 播放器功能集成",
5
5
  "main": "lib/index",
6
6
  "files": [