Skip to content

Commit b760a74

Browse files
authored
Merge pull request #637 from creativetimofficial/marqbeniamin-patch-1
Update video.mdx
2 parents 9aea141 + 127262e commit b760a74

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

documentation/html/video.mdx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,10 @@ This example includes the autoPlay attribute on the <Code>\<video></Code> tag ma
5252

5353
<CodePreview component={<HTMLVideoExamples.AutoplayVideo />}>
5454
```html
55-
export default function Example() {
56-
return (
5755
<video class="h-full w-full rounded-lg" controls autoPlay>
5856
<source src="/demo.mp4" type="video/mp4" />
5957
Your browser does not support the video tag.
6058
</video>
61-
);
62-
}
6359
```
6460
</CodePreview>
6561

@@ -72,15 +68,11 @@ export default function Example() {
7268
By adding <Code>muted</Code> to the \<video> tag, the video will play without sound by default when the page loads. This attribute is particularly important in conjunction with autoPlay, as many modern web browsers restrict autoplay functionality for videos with sound to prevent disrupting the user experience.
7369

7470
<CodePreview component={<HTMLVideoExamples.MutedVideo />}>
75-
```jsx
76-
export default function Example() {
77-
return (
71+
```html
7872
<video class="h-full w-full rounded-lg" controls autoPlay muted>
7973
<source src="/demo.mp4" type="video/mp4" />
8074
Your browser does not support the video tag.
8175
</video>
82-
);
83-
}
8476
```
8577
</CodePreview>
8678

0 commit comments

Comments
 (0)