Skip to content

Commit 02319b0

Browse files
committed
video example
1 parent 67c64e8 commit 02319b0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

topic-01-typical/unit-1/book-a/04.04.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,30 @@ This is some text
1313

1414
An example of a video:
1515

16-
## Video Shortcut:
16+
## Video
1717

18-
Ssing a convenient shortcut like this:
18+
::video[src="./img/video.mov"]::
19+
20+
The above is displayed using a convenient shortcut like this:
1921

2022
~~~markdown
2123
::video[src="./img/video.mov"]::
2224
~~~
2325

24-
::video[src="./img/video.mov"]::
25-
26+
The video must be in the img file.
2627

2728
## Embedded Player
2829

30+
The same video again:
31+
2932
<div class="relative mx-auto w-full mb-4 border rounded-lg overflow-hidden" style="aspect-ratio: 16/9; ">
3033
<video controls class="absolute inset-0 h-full w-full">
3134
<source src="./img/video.mov" type="video/mp4">
3235
</video>
3336
</div>
3437

38+
This time using this explicit video player:
39+
3540
~~~html
3641
<div class="relative mx-auto w-full mb-4 border rounded-lg overflow-hidden" style="aspect-ratio: 16/9; ">
3742
<video controls class="absolute inset-0 h-full w-full">

0 commit comments

Comments
 (0)