From b0d3976d0179414600d601a39de0d0904d4531aa Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Fri, 3 Oct 2025 21:54:03 +0530 Subject: [PATCH] Updated Video PLayer Component --- src/components/VideoPlayer.astro | 13 +++++++++---- src/pages/video-player.astro | 3 ++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/VideoPlayer.astro b/src/components/VideoPlayer.astro index 34d0bc2..b6af61d 100644 --- a/src/components/VideoPlayer.astro +++ b/src/components/VideoPlayer.astro @@ -9,6 +9,7 @@ interface Props extends HTMLAttributes<"div"> { muted?: boolean; volume?: number; overlayInfo?: string; + poster?: string; } const { @@ -19,6 +20,7 @@ const { muted = false, volume = 0.75, overlayInfo, + poster = "", } = Astro.props; --- @@ -30,6 +32,7 @@ const { playsinline autoplay={autoPlay} muted + poster={poster} > Your browser does not support the video tag. @@ -60,8 +63,8 @@ const {
- +
{ diff --git a/src/pages/video-player.astro b/src/pages/video-player.astro index 96b02e8..5118690 100644 --- a/src/pages/video-player.astro +++ b/src/pages/video-player.astro @@ -5,7 +5,8 @@ import ComponentLayout from "../layouts/ComponentLayout.astro";