The Video component provides a custom-styled video player with controls for playback, volume, fullscreen, and support for different aspect ratios.
The Video component accepts the following props:
src - URL of the video file to play. Supports MP4, WebM, and HLS streams (required)poster - URL of the poster image displayed before playback startsaspect - Aspect ratio: horizontal (16:9), vertical (9:16), or square (1:1) (default:
horizontal)autoplay - Automatically start playback when loaded (default: false)class - Additional CSS classes to applyBasic usage with poster:
Vertical video with autoplay:
Square video without poster:
Note that most browsers restrict autoplay with sound. If using autoplay, the video may be muted by default or require user interaction to play with sound.