Add persistent watch time setting. #7547
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue