Fix handling EOF with MPV (#201)

This commit is contained in:
Arkadiusz Fal
2022-07-03 23:18:27 +02:00
parent 9cb6ff64ff
commit 11ef8c4dfc
2 changed files with 7 additions and 14 deletions

View File

@@ -176,6 +176,10 @@ final class MPVClient: ObservableObject {
mpv.isNil ? false : getFlag("paused-for-cache")
}
var eofReached: Bool {
mpv.isNil ? false : getFlag("eof-reached")
}
func seek(relative time: CMTime, completionHandler: ((Bool) -> Void)? = nil) {
guard !seeking else {
logger.warning("ignoring seek, another in progress")