@ray-js/ipc-player-integration 0.0.35-beta.17 → 0.0.35-beta.18

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.
Files changed (2) hide show
  1. package/lib/ui/ui.js +7 -5
  2. package/package.json +1 -1
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 && !siqInitRef.current) {
471
- siqInitRef.current = true;
472
- refreshSmartImageQuality();
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.35-beta.17",
3
+ "version": "0.0.35-beta.18",
4
4
  "description": "IPC 融合播放器",
5
5
  "main": "lib/index",
6
6
  "files": [