mirror of
https://github.com/yattee/yattee.git
synced 2025-10-11 18:08:12 +00:00
Handle core-idle property
This commit is contained in:
@@ -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)")
|
||||
}
|
||||
|
Reference in New Issue
Block a user