From 92d0b3215b8b8a3d197919737b6dc0c3e70be3a1 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 10 May 2026 17:23:56 +0200 Subject: [PATCH] Resume MPV rendering when expanded player view re-appears On iPad, expanding the player after collapsing left the MPV display link paused, showing only a static frame. MiniPlayerView pauses rendering when its video preview hides during expand, and PlayerService.playerSheetDidAppear is gated behind background playback so it can't reliably resume. Call resumeRendering() from MPVVideoView.onAppear so the expanded view always restarts the display link. --- Yattee/Views/Player/MPVVideoView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Yattee/Views/Player/MPVVideoView.swift b/Yattee/Views/Player/MPVVideoView.swift index 473aeaa1..90360855 100644 --- a/Yattee/Views/Player/MPVVideoView.swift +++ b/Yattee/Views/Player/MPVVideoView.swift @@ -143,6 +143,13 @@ struct MPVVideoView: View { applies: appliesAspectRatio )) .onAppear { + #if os(iOS) + // Resume the MPV display link when the expanded video view appears. + // MiniPlayerView pauses rendering when its video preview hides during expand; + // PlayerService.playerSheetDidAppear is gated behind background playback, so it + // can't be relied on to resume. + backend.resumeRendering() + #endif // Start debug updates if overlay is already visible when view appears if playerState.showDebugOverlay { startDebugUpdates()