Phase 6.2.3: Cross-Browser HTML5 Video Player
Custom controls styled to match the minimalist design system
Full-featured player with custom controls: Play/Pause, Volume, Progress bar, Fullscreen
Cinematic 21:9 aspect ratio, autoplay muted with loop - ideal for hero sections
Each player operates independently
{% import "macros/videoPlayer.njk" as video %}
{{ video.videoPlayer(
src="/path/to/video.mp4",
poster="/path/to/poster.jpg",
aspectRatio="16/9"
) }}
{{ video.heroVideoPlayer(
src="/path/to/video.mp4",
poster="/path/to/poster.jpg",
aspectRatio="21/9"
) }}
{{ video.videoPlayer(
src="/video.mp4", // Required: Video URL
poster="/poster.jpg", // Optional: Poster image
autoplay=false, // Optional: Autoplay (muted)
controls=true, // Optional: Show controls
loop=false, // Optional: Loop video
aspectRatio="16/9", // Optional: Aspect ratio
label="Video description" // Optional: Accessible label
) }}