Learn R Programming

checkdown (version 0.0.13)

insert_audio: Insert audio

Description

Insert audio

Usage

insert_audio(
  src,
  controls = TRUE,
  autoplay = FALSE,
  loop = FALSE,
  muted = FALSE,
  preload = c("none", "auto", "metadata")
)

Value

returns set of html tags

Arguments

src

character. It specifies the location (URL) of the audio file.

controls

logical. When TRUE, it specifies that audio controls should be displayed.

autoplay

logical. When TRUE, the audio will automatically start playing as soon as it can do so without stopping.

loop

logical. When TRUE, it specifies that the audio will start over again, every time it is finished.

muted

logical. When TRUE, it specifies that the audio output should be muted.

preload

character. It specifies if and how the author thinks that the audio file should be loaded when the page loads. Possible values are none, auto and metadata

Author

George Moroz <agricolamz@gmail.com>

Examples

Run this code

insert_audio("1.wav")

Run the code above in your browser using DataLab