fix(Player): reset the flag back to false

This commit is contained in:
Timothy Z. 2025-05-20 15:54:20 +03:00
parent 38f7e5a0f8
commit 440713ee68

View file

@ -440,6 +440,9 @@ const Player = ({ urlParams, queryParams }) => {
defaultSubtitlesSelected.current = false;
defaultAudioTrackSelected.current = false;
nextVideoPopupDismissed.current = false;
// we need a timeout here to make sure that previous page unloads and the new one loads
// avoiding race conditions and flickering
setTimeout(() => isNavigating.current = false, 1000);
}, [video.state.stream]);
React.useEffect(() => {