Add dropped frames counter

This commit is contained in:
Arkadiusz Fal
2022-06-16 19:44:39 +02:00
parent 80659713f6
commit 81b8cbd5f1
5 changed files with 32 additions and 16 deletions

View File

@@ -554,6 +554,10 @@ final class PlayerModel: ObservableObject {
Windows.player.toggleFullScreen()
#endif
#if os(iOS)
setNeedsDrawing(false)
#endif
controls.playingFullscreen = !isFullScreen
#if os(iOS)
@@ -565,6 +569,10 @@ final class PlayerModel: ObservableObject {
} else {
Orientation.lockOrientation(.allButUpsideDown, andRotateTo: .portrait)
}
DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { [weak self] in
self?.setNeedsDrawing(true)
}
#endif
}