mirror of
https://github.com/yattee/yattee.git
synced 2025-01-10 11:30:32 +05:30
Try to patch #78
Issue appears when app switches layout from tab to sidebar navigation
This commit is contained in:
parent
d31aeea52a
commit
da0b25b14d
@ -227,6 +227,19 @@ struct VideoPlayerView: View {
|
|||||||
|
|
||||||
PlayerControls(player: player)
|
PlayerControls(player: player)
|
||||||
}
|
}
|
||||||
|
#if os(iOS)
|
||||||
|
.onAppear {
|
||||||
|
// ugly patch for #78
|
||||||
|
guard player.activeBackend == .mpv else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
player.activeBackend = .appleAVPlayer
|
||||||
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||||
|
player.activeBackend = .mpv
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
var fullScreenLayout: Bool {
|
var fullScreenLayout: Bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user