Audio url/path to HTML Audio Tag

Usage

AD(audio = "clipboard", is_url = is.url(audio), copy2clip = interactive(), print = FALSE)

Arguments

audio
A url, path or file located in the audio directory which is an audio file.
is_url
logical. If TRUEaudio’ is located in the ‘~audio’ or ‘../audio’ directory of ‘REPORTS’ or ‘PRESENTATION’ directories.
copy2clip
If TRUE attempts to copy the output to the clipboard.
print
logical. If TRUE cat prints the output to the console. If FALSE returns to the console.

Value

Returns a character vector of an HTML source tag that embeds an audio file.

Description

Converts a url/path to an HTML audio tag. AD attempts to determine the location of the audio file if it is not a path or url.

Examples

## Not run: # AD("foo.mp4")# ## End(Not run)