@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
|
|
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 = () => {
|