insert_audio: Insert audio

View source: R/insert_audio.R

insert_audioR Documentation

Insert audio

Description

Insert audio

Usage

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

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

Value

returns set of html tags

Author(s)

George Moroz <agricolamz@gmail.com>

Examples


insert_audio("1.wav")


agricolamz/checkdown documentation built on Oct. 27, 2023, 4:02 p.m.