@ray-js/ray-ipc-player 2.0.18-beta-4 → 2.0.18-beta-6
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 +2 -6
- package/lib/index.module.less +6 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4,9 +4,8 @@ import "core-js/modules/web.dom-collections.iterator.js";
|
|
|
4
4
|
import React, { useEffect, useRef, useCallback } from 'react';
|
|
5
5
|
import { useImmer } from 'use-immer';
|
|
6
6
|
import { IpcPlayer, View, CoverView } from '@ray-js/components';
|
|
7
|
-
import { setPageOrientation } from '@ray-js/ray';
|
|
7
|
+
import { setPageOrientation, usePageEvent } from '@ray-js/ray';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import { usePageEvent } from 'ray';
|
|
10
9
|
import locals from './i18n';
|
|
11
10
|
import Styles from './index.module.less';
|
|
12
11
|
import { IpcFailCode } from './constant';
|
|
@@ -401,10 +400,7 @@ const Player = props => {
|
|
|
401
400
|
}, devId);
|
|
402
401
|
}
|
|
403
402
|
}, locals.getLang('ipc_player_re_wake_camera'))) : /*#__PURE__*/React.createElement(View, {
|
|
404
|
-
|
|
405
|
-
width: '95%',
|
|
406
|
-
textAlign: 'center'
|
|
407
|
-
}
|
|
403
|
+
className: clsx(Styles.err_container)
|
|
408
404
|
}, /*#__PURE__*/React.createElement(View, {
|
|
409
405
|
className: clsx(Styles.iconfont, Styles.icon_tishi, !playState.deviceOnlineState && Styles.hide)
|
|
410
406
|
}), /*#__PURE__*/React.createElement(View, {
|
package/lib/index.module.less
CHANGED