We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc53bf commit 44a3e86Copy full SHA for 44a3e86
src/components/Video.astro
@@ -1,12 +1,16 @@
1
---
2
interface Props {
3
src: string;
4
+ "play-always": boolean;
5
}
6
-const { src } = Astro.props;
7
+const props: Props = Astro.props;
8
+
9
+const src = props.src;
10
+const always = props["play-always"] ?? false;
11
12
-<video width="100%" muted loop controls data-pagefind-ignore>
13
+<video width="100%" muted loop controls={!always} data-pagefind-ignore autoplay={always}>
14
<source {src} type="video/mp4" />
15
Your device does not support video playback.
16
</video>
0 commit comments