I'm converting a website I developed in markdown
into a quarto book.
I used to have a sound player, that looked like so:
html_tag_audio <- function(file, type = c("wav")) {
type <- match.arg(type)
htmltools::tags$audio(
controls = "",
htmltools::tags$source(
src = file,
type = glue::glue("audio/{type}", type = type)
)
)
}
and then, I would refer to it like so:
html_tag_audio("Sound/mylocalsoundfile.mp3", type = "wav")
This doesn't seem to work any longer in quarto. I feel this has something to do with the file/folder structure since I get a notification during rendering saying: /Sound/mylocalsoundfile.mp3 (404: Not Found)
.
How do I properly include a sound player and link a local file?