mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
fix(player): Improve MPV stability and seek performance (#953)
This commit is contained in:
parent
9f11061433
commit
62f4bb0d7b
2 changed files with 2 additions and 2 deletions
|
|
@ -83,6 +83,7 @@ export const SynchronizedLyrics = ({
|
|||
(time: number) => {
|
||||
if (playbackType === PlaybackType.LOCAL && mpvPlayer) {
|
||||
mpvPlayer.seekTo(time);
|
||||
setCurrentTime(time, true);
|
||||
} else {
|
||||
setCurrentTime(time, true);
|
||||
handleScrobbleFromSeek(time);
|
||||
|
|
|
|||
|
|
@ -119,8 +119,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
|
|||
|
||||
const handleStop = useCallback(() => {
|
||||
if (isMpvPlayer) {
|
||||
mpvPlayer!.pause();
|
||||
mpvPlayer!.seekTo(0);
|
||||
mpvPlayer!.stop();
|
||||
} else {
|
||||
stopPlayback();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue