@ray-js/ray-ipc-player 2.0.18-beta-7 → 2.0.18-beta-8

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -52,7 +52,7 @@ const Player = props => {
52
52
  const [playState, setPlayState] = useImmer({
53
53
  connectState: false,
54
54
  // 连接状态
55
- loadingState: false,
55
+ loadingState: true,
56
56
  // 加载状态
57
57
  errorState: false,
58
58
  // 异常状态
@@ -374,7 +374,7 @@ const Player = props => {
374
374
  borderColor: borderColor,
375
375
  borderWidth: borderWidth,
376
376
  backgroundColor: bgColor
377
- }, extend)), /*#__PURE__*/React.createElement(View, {
377
+ }, extend)), /*#__PURE__*/React.createElement(CoverView, {
378
378
  style: {
379
379
  borderRadius: "".concat(borderRadius)
380
380
  },
@@ -388,7 +388,7 @@ const Player = props => {
388
388
  borderRadius: "".concat(borderRadius)
389
389
  },
390
390
  className: clsx(Styles.bg_center, Styles.state_label, !playState.errorState && Styles.hide)
391
- }, privateState ? /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
391
+ }, privateState && /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
392
392
  className: Styles.device_sleep
393
393
  }, locals.getLang('ipc_player_device_sleep')), /*#__PURE__*/React.createElement(View, {
394
394
  className: Styles.re_wake_camera
@@ -399,7 +399,7 @@ const Player = props => {
399
399
  105: false
400
400
  }, devId);
401
401
  }
402
- }, locals.getLang('ipc_player_re_wake_camera'))) : /*#__PURE__*/React.createElement(View, {
402
+ }, locals.getLang('ipc_player_re_wake_camera'))), !privateState && /*#__PURE__*/React.createElement(View, {
403
403
  className: clsx(Styles.err_container)
404
404
  }, /*#__PURE__*/React.createElement(View, {
405
405
  className: clsx(Styles.iconfont, Styles.icon_tishi, !playState.deviceOnlineState && Styles.hide)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-player",
3
- "version": "2.0.18-beta-7",
3
+ "version": "2.0.18-beta-8",
4
4
  "description": "ray小程序播放器",
5
5
  "keywords": [
6
6
  "tuya-miniapp",