mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 22:12:13 +00:00
refactor(Player): use nextVideoNotificationDuration setting to trigger next video popup
This commit is contained in:
parent
b51f607ffe
commit
0a7ef22eb6
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
}, [videoState.paused]);
|
||||
React.useEffect(() => {
|
||||
if (!!settings.bingeWatching && !nextVideoPopupDismissed.current) {
|
||||
if (videoState.time !== null && videoState.duration !== null && videoState.time < videoState.duration && (videoState.duration - videoState.time) <= (35 * 1000)) {
|
||||
if (videoState.time !== null && videoState.duration !== null && videoState.time < videoState.duration && (videoState.duration - videoState.time) <= settings.nextVideoNotificationDuration) {
|
||||
openNextVideoPopup();
|
||||
} else {
|
||||
closeNextVideoPopup();
|
||||
|
|
|
|||
Loading…
Reference in a new issue