Files
caperren-com/src/components/Media/Video.astro
Corwin Perren 3aa75e1a10
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 2m31s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped
LeConte deployments page complete, better auto-formatting and import sorting, new inline link, popover definitions, and paragraph components, improvements to component interfaces
2025-12-05 01:02:18 -08:00

35 lines
583 B
Plaintext

---
interface Props {
videoPath: string;
videoType?: string;
controls?: boolean;
autoPlay?: boolean;
loop?: boolean;
playsInline?: boolean;
}
const {
videoPath,
videoType = "video/mp4",
controls = true,
autoPlay = false,
loop = false,
playsInline = false,
} = Astro.props;
---
<div class="mx-auto my-auto">
<video
class="h-auto w-full"
controls={controls}
autoplay={autoPlay}
loop={loop}
playsinline={playsInline}
>
<source src={videoPath} type={videoType} />
Your browser does not support the video tag.
</video>
</div>