mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 22:30:32 +05:30
Minor fixes
This commit is contained in:
parent
af88002adc
commit
b0851c6140
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user