fix(Player): do not show next video popup if bingeWatching is not enabled

This commit is contained in:
Tim 2022-11-28 11:43:26 +01:00
parent 796ec387aa
commit e8f3291c34

View file

@ -341,7 +341,7 @@ const Player = ({ urlParams, queryParams }) => {
}
}, [videoState.paused]);
React.useEffect(() => {
if (!nextVideoPopupDismissed.current) {
if (!!settings.bingeWatching && !nextVideoPopupDismissed.current) {
if (videoState.time !== null && videoState.duration !== null && videoState.time < videoState.duration && (videoState.duration - videoState.time) <= (35 * 1000)) {
openNextVideoPopup();
} else {