inst/examples/base64/app.R

library(shiny)
library(howler)

base64_file <- readLines("audio.txt")

ui <- fluidPage(
  title = "howler Base64 Example",

  h1("howler Base64 Example"),
  howler(elementId = "sound", list(sound = base64_file)),
  howlerPlayButton("sound")
)

server <- function(input, output) {}

shinyApp(ui, server)

Try the howler package in your browser

Any scripts or data that you put into this service are public.

howler documentation built on June 22, 2024, 9:48 a.m.