MainScreenComponent - A responsive container component that dynamically adjusts child layouts.
This component provides intelligent layout management for main screen content, automatically
calculating and adjusting dimensions based on window size, control visibility, and stacking
preferences. It's designed for responsive video/content layouts that adapt to various screen sizes.
Key Features:
Responsive Sizing: Automatically adjusts to window dimensions with configurable fractions
Stacking Support: Toggle between stacked and side-by-side layouts for child components
Control-Aware: Adjusts available space based on control bar visibility
Size Callbacks: Reports calculated dimensions via updateComponentSizes callback
Orientation Detection: Detects and responds to wide-screen vs. portrait layouts
Child Customization: Granular control over each child's layout and styling
Render Hooks: Complete override capability for children rendering and container layout
Real-time Updates: Responds to window resize events with debounced updates
Percentage-Based: Supports percentage-based sizing for main component when stacking
Flexible Fractions: Customizable width/height fractions for precise layout control
Component Sizes: Tracks and exposes mainHeight, otherHeight, mainWidth, otherWidth
Performance Optimized: Memoized calculations and efficient resize handling
MainScreenComponent - A responsive container component that dynamically adjusts child layouts.
This component provides intelligent layout management for main screen content, automatically calculating and adjusting dimensions based on window size, control visibility, and stacking preferences. It's designed for responsive video/content layouts that adapt to various screen sizes.
Key Features:
Component
Example
// Basic usage for responsive video layout
Example
// Custom styled with fractional sizing
Example
// Analytics tracking for layout changes
Example
// Integration with MediasfuGeneric using uiOverrides