@ray-js/ipc-player-integration 0.0.35-beta.16 → 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.
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 = () => {
@@ -79,6 +79,7 @@ export const TryExperience = props => {
79
79
  }
80
80
  }, [buttonState]);
81
81
  const onTryExperience = useCallback(async () => {
82
+ console.log('res===onTryExperience', lockRef.current, isLowPhone);
82
83
  if (lockRef.current) return;
83
84
  if (isLowPhone) {
84
85
  showToast({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.35-beta.16",
3
+ "version": "0.0.35-beta.18",
4
4
  "description": "IPC 融合播放器",
5
5
  "main": "lib/index",
6
6
  "files": [