Minor fixes

This commit is contained in:
Arkadiusz Fal 2022-08-06 16:28:19 +02:00
parent d7735cf59d
commit ccd9c4eb2a
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ struct NetworkState: View {
} }
var visible: Bool { var visible: Bool {
player.isPlaying && (model.pausedForCache || player.isSeeking) player.isPlaying && ((player.activeBackend == .mpv && model.pausedForCache) || player.isSeeking)
} }
} }

View File

@ -97,8 +97,8 @@ struct VideoPlayerView: View {
} }
#if os(iOS) #if os(iOS)
.frame(width: playerWidth.isNil ? nil : Double(playerWidth!), height: playerHeight.isNil ? nil : Double(playerHeight!)) .frame(width: playerWidth.isNil ? nil : Double(playerWidth!), height: playerHeight.isNil ? nil : Double(playerHeight!))
#endif
.ignoresSafeArea(.all, edges: playerEdgesIgnoringSafeArea) .ignoresSafeArea(.all, edges: playerEdgesIgnoringSafeArea)
#endif
.onChange(of: geometry.size) { size in .onChange(of: geometry.size) { size in
self.playerSize = size self.playerSize = size
} }