Minor improvements

This commit is contained in:
Arkadiusz Fal
2022-03-27 13:42:20 +02:00
parent 590aa00148
commit 67723f4624
8 changed files with 46 additions and 14 deletions

View File

@@ -152,6 +152,10 @@ final class MPVBackend: PlayerBackend {
isPlaying = true
startClientUpdates()
if controls.presentingControls {
startControlsUpdates()
}
client?.play()
}
@@ -305,4 +309,8 @@ final class MPVBackend: PlayerBackend {
func setNeedsDrawing(_ needsDrawing: Bool) {
client?.setNeedsDrawing(needsDrawing)
}
func setSize(_ width: Double, _ height: Double) {
self.client?.setSize(width, height)
}
}