Skip to content

Is it possible to autoplay audio file on a slide? #11370

Answered by cderv
durraniu asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@durraniu
Comment options

@durraniu
Comment options

Answer selected by durraniu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format
2 participants