Skip to main content

Allows embedding of HTML5 videos in sphinx

Project description

The video extension allows you to embed .mp4/.webm/etc videos as defined by the HTML5 standard. It’s just a wrapper around:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

Parameters

The extension should expose pretty much all parameters from the HTML5 <video/> tag.

Example:

.. video:: path/to/video.mp4
   :width: 500
   :height: 300
   :autoplay:
   :nocontrols:

Please note that the width, height, autoplay and nocontrols parameters are all optional.

Installing

As usual with sphinx extensions, remember to add them to your config:

extensions = [
    'sphinxcontrib.video'
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-video-0.0.1.dev3.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

sphinxcontrib_video-0.0.1.dev3-py2.py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page