@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.
- package/lib/index.js +4 -4
- 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:
|
|
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(
|
|
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
|
|
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')))
|
|
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)
|