Learn R Programming

howler (version 0.2.1)

howlerCurrentTrack: Current Track

Description

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

Usage

howlerCurrentTrack(id, ...)

howlerSeekTime(id, ...)

howlerDurationTime(id, ...)

Value

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

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.

Examples

Run this code
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)
}

Run the code above in your browser using DataLab