YT(path = "clipboard", width = 640, height = 360, copy2clip = interactive(), print = FALSE) VM(path = "clipboard", width = 640, height = 360, copy2clip = interactive(), print = FALSE) VD(path = "clipboard", video.js.path = "assets/js/vidscript.js", width = "100%", height = 520, indent.controls = 4, copy2clip = interactive(), print = FALSE)
VD requires a .mp4 file.TRUE attempts to
copy the output to the clipboard.TRUE
cat prints the output to the console.
If FALSE returns to the console.dirname
of video.js.path then
js_copy will be utilized to place
the appropriate video file in the correct location.Returns a character vector of an HTML iframe tag that embeds a YouTube or Vimeo video.
YT - Wrap a YouTube tag or url to generate an HTML
iframe tag.
VM - Wrap a Vimeo tag or url OR to generate an HTML
iframe tag.
VD - Wrap a local path to generate an HTML video
tag.
Use YT for YouTube videos and VM for Vimeo
videos.
For YouTube videos it may be better to utilize a slide
layout class as a slide with a link followed by a slide
with a youtube video may cause the link to become in
active. To create a youtube slide use the form: ---
.YT yt:ArHQjQyIS70 &youtube where the portion after
yt: is the youtube tag.
YT("ArHQjQyIS70", print = TRUE)YT("http://www.youtube.com/watch?v=ArHQjQyIS70", print = TRUE)VM("http://vimeo.com/54007714", print = TRUE)
slidify_layouts,
js_copy