fix(video): prevent play next EOF loop

close #1228
This commit is contained in:
edde746
2026-06-02 15:52:14 +02:00
parent 24b5080c38
commit 08491511e9
5 changed files with 49 additions and 15 deletions
@@ -708,6 +708,9 @@ class MpvPlayerCoreBase: NSObject {
checkError(mpv_set_option_string(mpv, "hwdec-codecs", "all"))
checkError(mpv_set_option_string(mpv, "hwdec-software-fallback", "yes"))
checkError(mpv_set_option_string(mpv, "target-colorspace-hint", "auto"))
// Pause on the last frame at EOF instead of unloading the file, so seeking
// back after the video ends still works (matches Linux/Windows).
checkError(mpv_set_option_string(mpv, "keep-open", "yes"))
}
#if os(macOS)