fix(player): Improve MPV stability and seek performance (#953)

This commit is contained in:
et21ff 2025-06-11 08:22:40 +08:00 committed by GitHub
parent 9f11061433
commit 62f4bb0d7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -119,8 +119,7 @@ export const useCenterControls = (args: { playersRef: any }) => {
const handleStop = useCallback(() => {
if (isMpvPlayer) {
mpvPlayer!.pause();
mpvPlayer!.seekTo(0);
mpvPlayer!.stop();
} else {
stopPlayback();
}