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' ]
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinxcontrib-video-0.0.1.dev3.tar.gz
.
File metadata
- Download URL: sphinxcontrib-video-0.0.1.dev3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc866c65a39a5ce0ab4f5c4ca14cf4e463261f7a5f7bddf951cb168ce34463a3 |
|
MD5 | 51e568e26e6f6bc031086aaea4a52cee |
|
BLAKE2b-256 | 25db925d4faa7d1c3079c613fc1ca118a5d6fea8c08286a125f98d4a88260674 |
File details
Details for the file sphinxcontrib_video-0.0.1.dev3-py2.py3-none-any.whl
.
File metadata
- Download URL: sphinxcontrib_video-0.0.1.dev3-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe319afdab7ee44f34397f1165fa5e2e9196217ea43cfa4fc41d0edb968f3c5a |
|
MD5 | 47694162bf2bc9a5634e1be7c062951b |
|
BLAKE2b-256 | 39bda7a7b8959551e2f465675bfd914bd476809da9855a3c28157e3e458c1569 |