mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
fix seeking between 0-1 seconds
This commit is contained in:
parent
f7dd634f67
commit
6b7c69e90a
@ -474,7 +474,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
|
|||||||
mpvPlayer!.seek(-seconds);
|
mpvPlayer!.seek(-seconds);
|
||||||
} else {
|
} else {
|
||||||
resetNextPlayer();
|
resetNextPlayer();
|
||||||
currentPlayerRef.seekTo(newTime);
|
currentPlayerRef.seekTo(newTime, 'seconds');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -497,7 +497,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
|
|||||||
|
|
||||||
resetNextPlayer();
|
resetNextPlayer();
|
||||||
setCurrentTime(newTime, true);
|
setCurrentTime(newTime, true);
|
||||||
currentPlayerRef.seekTo(newTime);
|
currentPlayerRef.seekTo(newTime, 'seconds');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -505,7 +505,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
|
|||||||
if (isMpvPlayer) {
|
if (isMpvPlayer) {
|
||||||
mpvPlayer!.seekTo(e);
|
mpvPlayer!.seekTo(e);
|
||||||
} else {
|
} else {
|
||||||
currentPlayerRef.seekTo(e);
|
currentPlayerRef.seekTo(e, 'seconds');
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user