floating bugfix
This commit is contained in:
parent
bdfe9ed998
commit
6c498d02e1
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue