I am trying to autoplay
a sound which would act as an app startup sound. Below is what I am using. Now when I add controls = TRUE
, and click on play, the audio file plays fine, but when I set autoplay = TRUE
, it doesn't play on its own. How can I fix this?
ui = navbarPage("Project", theme = shinytheme("sandstone"),
tags$audio(src = "Melody.mp3",type = "audio/mp3", autoplay = TRUE),
img(src="tenor (1).gif", align = "topleft",height='90px',width='90px'),
tabPanel("Introduction")
UPDATE
I did a find a solution using HTML. How can this be applied to Shiny?