mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Add buffering and cache length to stats
This commit is contained in:
@@ -80,6 +80,14 @@ final class MPVBackend: PlayerBackend {
|
||||
client?.hwDecoder ?? "unknown"
|
||||
}
|
||||
|
||||
var bufferingState: Double {
|
||||
client?.bufferingState ?? 0
|
||||
}
|
||||
|
||||
var cacheDuration: Double {
|
||||
client?.cacheDuration ?? 0
|
||||
}
|
||||
|
||||
init(model: PlayerModel, controls: PlayerControlsModel? = nil) {
|
||||
self.model = model
|
||||
self.controls = controls
|
||||
|
Reference in New Issue
Block a user