Adjust video state clearing settings
What's strange is that this only occurs when you refresh odysee in between the plays. Might be a bug there.
This commit is contained in:
parent
4b0a06cef7
commit
a77e59cb53
1 changed files with 2 additions and 2 deletions
|
@ -71,8 +71,8 @@ function FilePage(props: Props) {
|
||||||
const videoPlayedEnoughToResetPosition = React.useMemo(() => {
|
const videoPlayedEnoughToResetPosition = React.useMemo(() => {
|
||||||
const durationInSecs =
|
const durationInSecs =
|
||||||
fileInfo && fileInfo.metadata && fileInfo.metadata.video ? fileInfo.metadata.video.duration : 0;
|
fileInfo && fileInfo.metadata && fileInfo.metadata.video ? fileInfo.metadata.video.duration : 0;
|
||||||
const isVideoTooShort = durationInSecs <= 10;
|
const isVideoTooShort = durationInSecs <= 45;
|
||||||
const almostFinishedPlaying = position / durationInSecs >= 0.9;
|
const almostFinishedPlaying = position / durationInSecs >= 0.8;
|
||||||
|
|
||||||
return isVideoTooShort || almostFinishedPlaying;
|
return isVideoTooShort || almostFinishedPlaying;
|
||||||
}, [fileInfo, position]);
|
}, [fileInfo, position]);
|
||||||
|
|
Loading…
Reference in a new issue