-
DescriptionI have audio clips for each slide that I want to autoplay when a slide is visited. Is that possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Revealjs has some support for this : https://revealjs.com/media/#autoplay If this is not working, or you need specific, you should look at the API event for revealjs. There is a slidechanged event (https://revealjs.com/events/#slide-changed) and you can do some JS processing when triggered. |
Beta Was this translation helpful? Give feedback.
Revealjs has some support for this : https://revealjs.com/media/#autoplay
It should be working in Quarto generated slides too. The global config is in our reference page too: https://quarto.org/docs/reference/formats/presentations/revealjs.html#media
If this is not working, or you need specific, you should look at the API event for revealjs. There is a slidechanged event (https://revealjs.com/events/#slide-changed) and you can do some JS processing when triggered.