ResizeMode
Defines how video content is resized to fit within the player view.Values
Scale the video uniformly (maintain aspect ratio) so that it fits entirely within the view. This is the default mode.The entire video will be visible, but there may be letterboxing (black bars on top/bottom or left/right) if the video’s aspect ratio doesn’t match the view.Use case: When you want to ensure the entire video is visible without cropping.
Scale the video uniformly (maintain aspect ratio) so that it fills the entire view.The video may be cropped if its aspect ratio doesn’t match the view. This ensures no letterboxing, but parts of the video may not be visible.Use case: When you want to fill the entire player area without letterboxing, and cropping is acceptable.
Scale the video to fill the entire view without maintaining the aspect ratio.The video will be stretched or squashed to fit the view dimensions exactly. This can result in distortion.Use case: Rarely recommended, but useful when you need the video to exactly match the view dimensions regardless of distortion.
Do not resize the video. Falls back to default behavior (typically ‘contain’).Use case: When you want the native platform’s default scaling behavior.
Visual Examples
Contain Mode
Cover Mode
Stretch Mode
Usage
Setting Resize Mode
Dynamic Resize Mode
Best Practices
Contain (Default)
Best for:- Educational or tutorial videos where all content must be visible
- Videos with important text or graphics near the edges
- When maintaining original aspect ratio is critical
Cover
Best for:- Background videos
- Full-screen immersive experiences
- Social media style feeds where cropping is acceptable
- When you want to avoid letterboxing
Stretch
Best for:- Very specific use cases where exact view dimensions are required
- Generally not recommended due to distortion
Aspect Ratio Considerations
Common video aspect ratios:- 16:9 - Standard widescreen (1920x1080, 1280x720)
- 9:16 - Vertical video (1080x1920, 720x1280)
- 4:3 - Traditional TV (640x480)
- 1:1 - Square (1080x1080)
- 21:9 - Ultra-widescreen (2560x1080)
Matching View to Video Aspect Ratio
Platform Support
Resize modes are supported on all platforms:- Android ✓
- iOS ✓
- visionOS ✓
- tvOS ✓
Related
- Video Component - The component that uses ResizeMode