Handle core-idle property

This commit is contained in:
Arkadiusz Fal
2023-09-23 18:05:13 +02:00
parent b0db04c119
commit 9db5fb0de7
2 changed files with 9 additions and 0 deletions

View File

@@ -605,6 +605,14 @@ final class MPVBackend: PlayerBackend {
isPlaying = !paused
networkStateTimer.start()
}
case "core-idle":
if let idle = UnsafePointer<Bool>(OpaquePointer(property.data))?.pointee {
if !idle {
isLoadingVideo = false
isSeeking = false
networkStateTimer.start()
}
}
default:
logger.info("MPV backend received unhandled property: \(name)")
}