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";