Stretch the mini player's video preview to fill its frame

Wide videos showed letterbox bars in the tiny iOS mini player preview right
after the dismiss morph, which lands the video filling the preview. The
container that takes the shared player view now sets mpv's keepaspect, so
the mini player fills its frame and every other surface keeps the aspect
ratio.
This commit is contained in:
Arkadiusz Fal
2026-10-09 23:59:58 +02:00
parent 7b1a24a5b0
commit 09a384763a
3 changed files with 29 additions and 0 deletions

View File

@@ -344,8 +344,13 @@ struct MiniPlayerView: View {
if let backend = playerService?.currentBackend as? MPVBackend,
let playerState,
shouldMountVideoView {
#if os(iOS)
MPVRenderViewRepresentable(backend: backend, playerState: playerState, fillsFrame: true)
.allowsHitTesting(false)
#else
MPVRenderViewRepresentable(backend: backend, playerState: playerState)
.allowsHitTesting(false)
#endif
}
// Thumbnail layer - on top so it can cover the black MPV view during PiP