Debian Codegraph @

test/functional/input/data/video.rst

raw
1 Moving images (video)
2 =====================
3
4 If the URL given to `images and figures` hints to a video format
5 supported by HTML 5 (MIME types 'video/mp4', 'video/webm', or
6 'video/ogg'), the HTML5 writer will place it in a `video element`_.
7
8 .. image:: ../../../docs/user/rst/images/pens.mp4
9 :align: left
10 :alt: left-aligned test video
11
12 A class option value "controls" tells the browser to display controls
13 for video playback.
14
15 It is a good idea to include width and height attributes. If
16 height and width are not set, the page might flicker while the video
17 loads. According to the `HTML5 spec`__, hight and width must be
18 specified as pixel values.
19
20 .. figure:: ../../../docs/user/rst/images/pens.mp4
21 :width: 200px
22 :align: center
23 :class: controls
24 :alt: test video in a figure
25
26 Simple test video in a centered figure
27
28 .. |testvideo| image:: ../../../docs/user/rst/images/pens.mp4
29 :width: 60 px
30 :alt: rotating pens video
31
32 A video like this |testvideo| can be included inline via substitution.
33
34 __
35 .. _video element:
36 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video