Skip to content

Embed music in presenation #486

Answered by yhatt
benni347 asked this question in Q&A
Discussion options

You must be logged in to vote

That sounds like to be a rare use case, but you can add a music to the HTML presentation by using the <audio> element in your Markdown after enabling HTML tags in your Marp tool.

---
marp: true
_footer: <audio src="https://free-loops.com/data/mp3/04/9e/b3ad7494a00424dc61921e3b341d.mp3" controls loop />
---

> Sound: Island Mallets 100BPM Instrument
> https://free-loops.com/8330-island-mallets-100bpm.html

---

...

This slide puts the audio player to the footer in the first slide. After once played, the viewer can listen the sound throughout the whole of presentation.

You also can try to order the sound to play automatically by adding autoplay attribute to the <audio> element, but please n…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benni347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants