@ray-js/ipc-player-integration 0.0.7 → 0.0.8-beta-2

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.d.ts CHANGED
@@ -26,6 +26,7 @@ type Props = {
26
26
  verticalMic?: boolean;
27
27
  landscapeMode?: 'fill' | 'standard';
28
28
  playerFit: 'contain' | 'cover';
29
+ awakeStatus?: boolean | undefined;
29
30
  eventRef?: React.RefObject<EventInstance>;
30
31
  onPlayerTap?: (data: any) => void;
31
32
  extend?: Record<string, any>;
package/lib/ui/ui.js CHANGED
@@ -53,6 +53,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
53
53
  eventRef: eventRefProp,
54
54
  landscapeMode = 'standard',
55
55
  playerFit = 'contain',
56
+ awakeStatus = undefined,
56
57
  onPlayerTap,
57
58
  extend = {}
58
59
  } = props;
@@ -453,6 +454,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
453
454
  // }
454
455
  // scaleMultiple={0}
455
456
  ,
457
+ awakeStatus: awakeStatus,
456
458
  objectFit: "fillCrop",
457
459
  scaleMultiple: scaleMultiple
458
460
  // 安卓横屏问题
@@ -12,6 +12,7 @@ type Props = ComponentConfigProps & {
12
12
  onTouchEnd?: TouchEventHandler['onTouchEnd'];
13
13
  talkingColor?: string;
14
14
  mode?: 'verticalSmall' | 'fullSmall' | 'circle';
15
+ disabled?: boolean;
15
16
  };
16
17
  export declare const VoiceIntercom: (props: Props) => React.JSX.Element;
17
18
  export {};
@@ -27,7 +27,8 @@ export const VoiceIntercom = props => {
27
27
  mode = 'circle',
28
28
  widthScale = 0.11,
29
29
  heightScale = 0.12,
30
- talkingColor = '#ffffff'
30
+ talkingColor = '#ffffff',
31
+ disabled = false
31
32
  } = props;
32
33
  const [frame, setFrame] = useState(0);
33
34
  const talkingInterval = useRef(null);
@@ -144,6 +145,7 @@ export const VoiceIntercom = props => {
144
145
  'ipc-player-plugin-voice-small-intercom': mode !== 'circle'
145
146
  }, intercomClassName),
146
147
  onTouchStart: async e => {
148
+ if (disabled) return;
147
149
  onTouchStart(e);
148
150
  getDefaultStore();
149
151
  if (loading.current) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.7",
3
+ "version": "0.0.8-beta-2",
4
4
  "description": "IPC 融合播放器",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -38,8 +38,8 @@
38
38
  "@ray-js/ipc-ptz-zoom": "^0.0.2",
39
39
  "@ray-js/panel-sdk": "^1.13.1",
40
40
  "@ray-js/direction-control": "^0.0.8",
41
- "@ray-js/ray-ipc-player": "^2.0.20",
42
- "@ray-js/ray-ipc-utils": "^1.1.3",
41
+ "@ray-js/ray-ipc-player": "2.0.21-beta-2",
42
+ "@ray-js/ray-ipc-utils": "1.1.6-beta-1",
43
43
  "@ray-js/svg": "0.2.0",
44
44
  "clsx": "^1.2.1",
45
45
  "jotai": "^2.10.2"