@ray-js/ray-ipc-player 2.0.21 → 2.0.22
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 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -77,6 +77,7 @@ const Player = props => {
|
|
|
77
77
|
// 设备在线状态
|
|
78
78
|
initLy: false
|
|
79
79
|
});
|
|
80
|
+
const [isVirtualDevice] = useState(devId.startsWith('vdevo'));
|
|
80
81
|
const [screenType, setScreenType] = useState('portrait');
|
|
81
82
|
const [videoErrCode, setVideoErrCode] = useState('');
|
|
82
83
|
// 是否启用下发唤醒指令定时
|
|
@@ -456,10 +457,10 @@ const Player = props => {
|
|
|
456
457
|
d.errorState = false;
|
|
457
458
|
d.errorMsg = '';
|
|
458
459
|
});
|
|
459
|
-
phoneNetworkConnect && onlineStatus && privateState && !isLowPowerDevice && handleReWakeCamera();
|
|
460
|
+
phoneNetworkConnect && onlineStatus && privateState && (!isLowPowerDevice || isVirtualDevice) && handleReWakeCamera();
|
|
460
461
|
|
|
461
462
|
// 低功耗设备隐私模式需单独处理,先进行下发唤醒, 唤醒后再进行下发DP
|
|
462
|
-
phoneNetworkConnect && onlineStatus && privateState && isLowPowerDevice && handleReWakeCameraLowPowerDevice();
|
|
463
|
+
phoneNetworkConnect && onlineStatus && privateState && isLowPowerDevice && !isVirtualDevice && handleReWakeCameraLowPowerDevice();
|
|
463
464
|
phoneNetworkConnect && onlineStatus && !privateState && _retry();
|
|
464
465
|
}, [isLowPowerDevice, phoneNetworkConnect && playState.connectState, privateState, onlineStatus]);
|
|
465
466
|
|
|
@@ -806,8 +807,6 @@ const Player = props => {
|
|
|
806
807
|
return errContent.suggestedText;
|
|
807
808
|
// 是否展示点我重试
|
|
808
809
|
case 'retry':
|
|
809
|
-
console.log(privateState, 'privateState========');
|
|
810
|
-
console.log(privateState, 'privateState========');
|
|
811
810
|
if (!phoneNetworkConnect) {
|
|
812
811
|
return false;
|
|
813
812
|
}
|