mirror of
https://github.com/yattee/yattee.git
synced 2026-10-26 14:42:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user