A way to display track information in the UI without having to communicate with the server.

howlerCurrentTrack(id, ...)

howlerSeekTime(id, ...)

howlerDurationTime(id, ...)

Arguments

id

ID given to the current track label. For it to work with the howler, the ID must match that of the howler.

...

Other attributes to give to the HTML tag.

Value

A div tag that will be linked to the howler to show the current track.

Examples

if (interactive()) {
  library(shiny)

  ui <- fluidPage(
    title = "howler.js Player",
    howler(elementId = "sound", "audio/sound.mp3"),
    howlerCurrentTrack("sound"),
    p(
      howlerSeekTime("sound"),
      "/",
      howlerDurationTime("sound")
    ),
    howlerPlayPauseButton("sound")
  )

  server <- function(input, output, session) {
  }

  shinyApp(ui, server)
}