A way to display track information in the UI without having to communicate with the server.
howlerCurrentTrack(id, ...)
howlerSeekTime(id, ...)
howlerDurationTime(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.
A div
tag that will be linked to the howler
to show the current track.
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)
}