Add persistent watch time setting. #7547

Merged
Ruk33 merged 8 commits from 7543-settings-option-to-persist-fully-watched-files-for-view-indicator into master 2022-04-22 05:00:57 +02:00
Showing only changes of commit 6c498d02e1 - Show all commits

View file

@ -270,7 +270,11 @@ function VideoViewer(props: Props) {
}
function handlePosition(player) {
savePosition(uri, player.currentTime());
const currTime = player.currentTime();
const durationInSeconds = claim.value.video && claim.value.video.duration;
if (Number(durationInSeconds) > Number(currTime)) {
savePosition(uri, player.currentTime());
}
}
function restorePlaybackRate(player) {