- Notifications
You must be signed in to change notification settings - Fork5
Functions to Embed Video in HTML
License
ijlyttle/vembedr
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The goal of vembedr is to make it a little bit easier for you to embedvideos into yourRMarkdown documents and yourShiny apps; theseservices are supported:
- YouTube
- Vimeo
- Box
- Microsoft Stream
- updated internal implementation to comport with latest Pandoc.(#52, thanks@jnolis!)
- deprecated Microsoft Channel 9 (including UserR! 2016 & 2017), asChannel 9 has beenmoved.(#54)
You can install the latest released version from CRAN with:
install.packages("vembedr")or the latest development version from GitHub with:
# install.packages("devtools")devtools::install_github("ijlyttle/vembedr")
This project supports two documentation-websites, built usingpkgdown:
- CRAN version
- latestdevelopent versionfrom GitHub
The most useful function might beembed_url(). If the URL is from oneof the supported services, it will do the right thing:
library("vembedr")embed_url("https://www.youtube.com/watch?v=uV4UpCq2azs")
The video is not embedded in this README file as is rendered toMarkdown; to see embedded videos, please seevignette("vembedr"). Eachof the supported services, e.g. YouTube, is discussed invignette("embed").
The functions are designed to be piped. For example, here’s how you canmodify the appearance and the start time:
embed_url("https://www.youtube.com/watch?v=uV4UpCq2azs") %>% use_start_time("1m32") %>% use_align("center")
To see these functions in action, seevignette("modify").
Be aware that, due to licensing issues, not all videos will playwhen embedded at a different site (like your HTML document).
The RStudio viewer will embed YouTube and Vimeo videos, but notothers. Videos from all services should be rendered as you expect ina browser like Chrome.
Some of the formatting, e.g. rounded corners, does not render onmobile sites.
Please note that the vembedr project is released with aContributorCode ofConduct.By contributing to this project, you agree to abide by its terms.
About
Functions to Embed Video in HTML
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.