diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index 64913846..81207764 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -227,6 +227,19 @@ struct VideoPlayerView: View { 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 {