-
Notifications
You must be signed in to change notification settings - Fork 54
Embed Size Control
There are currently two ways to config player size of embeds
You can now resize media players similar to images
- markdown-favor:
![AltText|100x100](https://url/to/video.mp4)
- wikilinks:
![[video.mp4|100x100]]
To have the media scale according to its aspect ratio, omit the height: ![[image.png|100]]
You can set minimal width
and maxinum height
in the setting tab. You can also hide certain controls to shrink the width further.
For maxinum height: the player will try to fill the width of page while keeping its aspect ratio, and maxinum height
will stop filling the width when reaching threshold to prevent vertical video from fill the whole page.
PS: the default unit vh
(aka view height) is a responsive length unit based on the height of the viewport (the area of the window in which content can be seen), which will adapt to your screen size. If you prefer fixed one, you can still use px
or em
. For more details about vh, check here