View source: R/make_yt_embed.R
make_yt_embed | R Documentation |
Internal helpers for compile_teach_it()
. Get YT embed code from any Youtube link
make_yt_embed(link)
link |
a YouTube link |
Other Internal helper functions:
zcatchLinkNA()
,
zget_envir()
#Should give 4 URLs in format www.youtube.com/embed/videoID and 1 original URL (not on YT)
c("https://youtu.be/mD24yi7uLgU",
"https://youtu.be/ZAFjYJk27Ug?si=d-MIziNb39ib_8fW",
"https://www.youtube.com/watch?v=h5eTqjzQZDY",
"https://www.youtube.com/watch?v=Bk2APxqIhbk&t=1s",
"https://into-the-dark.galacticpolymath.com/") %>% make_yt_embed()
#should not change anything
make_yt_embed("https://www.youtube.com/embed/A2FBO8ofEac")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.