@ray-js/ipc-player-integration 0.0.35-beta.17 → 0.0.35-beta.19
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/ui/ui.js
CHANGED
|
@@ -467,9 +467,13 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
467
467
|
});
|
|
468
468
|
const siqInitRef = useRef(false);
|
|
469
469
|
useEffect(() => {
|
|
470
|
-
if (playState === PlayState.PLAYING
|
|
471
|
-
siqInitRef.current
|
|
472
|
-
|
|
470
|
+
if (playState === PlayState.PLAYING) {
|
|
471
|
+
if (!siqInitRef.current) {
|
|
472
|
+
siqInitRef.current = true;
|
|
473
|
+
refreshSmartImageQuality();
|
|
474
|
+
}
|
|
475
|
+
} else {
|
|
476
|
+
siqInitRef.current = false;
|
|
473
477
|
}
|
|
474
478
|
}, [instance, playState]);
|
|
475
479
|
const refreshBottomLeft = () => {
|
|
@@ -553,8 +557,6 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
553
557
|
* 监听退出此player
|
|
554
558
|
*/
|
|
555
559
|
usePageEvent('onUnload', () => {
|
|
556
|
-
console.log('res===onUnload');
|
|
557
|
-
siqInitRef.current = false;
|
|
558
560
|
ipcTTTOperatorLog('hide: 调用停止录制方法');
|
|
559
561
|
setRecording(false, true);
|
|
560
562
|
setIntercom(false, true);
|
|
@@ -7,7 +7,7 @@ export const useTrialBadge = (event, devId, trialRemainingSec) => {
|
|
|
7
7
|
const [showTrialBadge, setShowTrialBadge] = useState(false);
|
|
8
8
|
const prevTrialSecRef = useRef(trialRemainingSec);
|
|
9
9
|
useEffect(() => {
|
|
10
|
-
if (trialRemainingSec > 0 && trialRemainingSec
|
|
10
|
+
if (trialRemainingSec > 0 && trialRemainingSec <= 300) {
|
|
11
11
|
if (trialRemainingSec !== prevTrialSecRef.current) {
|
|
12
12
|
setShowTrialBadge(true);
|
|
13
13
|
}
|
|
@@ -116,7 +116,7 @@ export const TryExperience = props => {
|
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
(_props$event = props.event) === null || _props$event === void 0 || _props$event.emit(refreshSmartImageQualityEvent);
|
|
119
|
-
} else if (buttonState === TryExperienceStatus.Close && isPurchase || buttonState === TryExperienceStatus.Close && trialRemainingSec
|
|
119
|
+
} else if (buttonState === TryExperienceStatus.Close && isPurchase || buttonState === TryExperienceStatus.Close && trialRemainingSec <= 300 && trialRemainingSec > 0) {
|
|
120
120
|
var _getAI$aiFrameFeature4, _getAI$aiFrameFeature5, _getAI$aiFrameFeature6, _props$event2;
|
|
121
121
|
const scope = _objectSpread(_objectSpread({}, (_getAI$aiFrameFeature4 = getAI.aiFrameFeature) === null || _getAI$aiFrameFeature4 === void 0 ? void 0 : _getAI$aiFrameFeature4.scope), {}, {
|
|
122
122
|
inPreview: true
|