Skip to content

Instantly share code, notes, and snippets.

@connerxyz
Last active October 31, 2017 02:35
Show Gist options
  • Save connerxyz/139ecbc9f4e822d1d359a8d836081b21 to your computer and use it in GitHub Desktop.
Save connerxyz/139ecbc9f4e822d1d359a8d836081b21 to your computer and use it in GitHub Desktop.
Experimenting with rendering video via Markdown/MkDocs (and IPython.display)

Rendering Video w/ MkDocs

Render video via HTML5 <video> tags in markdown cell?

Method 1

Using the <source> element:

<video style="width:70%" controls>
  <source src="local-video.mov">
  Your browser does not support the video tag.
</video>

Method 2

Using src attribute.

<video style="width:70%" controls src="local-video.mov"></video>

Method 3

Using src attribute with self-closing tag.

<video style="width:70%" controls src="local-video.mov" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment