floating bugfix

This commit is contained in:
zeppi 2022-04-20 17:14:16 -04:00
parent bdfe9ed998
commit 6c498d02e1

View file

@ -270,8 +270,12 @@ function VideoViewer(props: Props) {
}
function handlePosition(player) {
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) {
if (!vjsCallbackDataRef.current.embedded) {