Skip to content

Commit

Permalink
docs: add audio example
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Aug 27, 2024
1 parent 21df474 commit 056d41c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/writing/media.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,18 @@ We offer several container classes to decorate videos:
.. container:: video-2

.. video:: https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm

Audio
-----

There is no extension for audios, you can use ``raw`` directive with ``<audio>`` HTML tag.

.. code-block:: ReST
.. raw:: html
<audio controls src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"></audio>
.. raw:: html

<audio controls src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"></audio>

0 comments on commit 056d41c

Please sign in to comment.