SimpleWiki

Videos

Videos can be used to provide tutorials, demonstrations, or visual explanations inside your documentation.

SimpleWiki supports multiple ways to embed videos:

  • Local HTML5 videos
  • External video platforms
  • Privacy-friendly YouTube embeds

Local Videos

For videos stored inside your own project, use the standard HTML5 <video> element.

Place your video files inside the public/ directory.

Example:

public/
└── videos/
    └── example.mp4

You can then embed the video inside a Markdown page:

<video src="/simplewiki/videos/bunny.mp4" controls width="100%">
  Your browser does not support the video tag.
</video>

Result:


Video Controls

The <video> element supports standard HTML attributes.

Example:

<video 
  src="/videos/example.mp4"
  controls
  autoplay
  loop
  muted
>
</video>

Common attributes:

AttributeDescription
controlsShows playback controls
autoplayStarts playback automatically
loopRepeats the video
mutedStarts without sound
posterDisplays an image before playback

Video Thumbnails

You can define a preview image using the poster attribute.

Example:

<video 
  src="/videos/example.mp4"
  controls
  poster="/images/video-thumbnail.jpg"
>
</video>

The image will be displayed before the user starts the video.


YouTube Videos

SimpleWiki includes a privacy-friendly YouTube component, using the youtube-nocookie.com domain. Videos are not loaded immediately. The external YouTube connection is only created after the user starts playback.

Example:

::youtube{id="B5hUgTZQOMs"}
::

The id is the YouTube video ID.

For example:

https://youtube.com/watch?v=B5hUgTZQOMs

The ID is:

B5hUgTZQOMs

Result:

Play video

Custom Thumbnail Size

You can customize the thumbnail quality using the thumb-size property.

Example:

::youtube{id="d_IFKP1Ofq0" thumb-size="hqdefault"}
::

Available thumbnail sizes depend on YouTube's supported formats.