@ray-js/ray-ipc-player 2.0.18-beta-8 → 2.0.19-beta-beta-1
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 +3 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -17,7 +17,6 @@ const Player = props => {
|
|
|
17
17
|
onChangeStreamStatus,
|
|
18
18
|
onPlayerTap,
|
|
19
19
|
onZoomChange,
|
|
20
|
-
onSessionDidDisconnected,
|
|
21
20
|
onCameraPreviewFailure,
|
|
22
21
|
onCameraNotifyWeakNetwork,
|
|
23
22
|
onInitPreview,
|
|
@@ -110,6 +109,7 @@ const Player = props => {
|
|
|
110
109
|
|
|
111
110
|
// 设备离线、隐私模式
|
|
112
111
|
useEffect(() => {
|
|
112
|
+
console.log(onlineStatus, 'onlineStatus');
|
|
113
113
|
setPlayState(d => {
|
|
114
114
|
d.deviceOnlineState = onlineStatus;
|
|
115
115
|
d.errorState = privateState;
|
|
@@ -145,6 +145,8 @@ const Player = props => {
|
|
|
145
145
|
|
|
146
146
|
// 创建ipc实例
|
|
147
147
|
const createIpcCtx = () => {
|
|
148
|
+
console.log('创建ipc实例');
|
|
149
|
+
console.log(onCtx, 'onCtx');
|
|
148
150
|
onCtx && onCtx({
|
|
149
151
|
ctx: ipcCtx.current,
|
|
150
152
|
retry
|