embed {vembedr} | R Documentation |
Embed video from service
Description
These functions are used to embed video into your rmarkdown html-documents, or into your shiny apps. There are functions to embed from YouTube, Vimeo, Microsoft Channel 9 (who host the UseR! 2016 videos), and Box.
Usage
embed_box(
id,
custom_domain = getOption("vembedr.box_custom_domain"),
width = NULL,
height = 300,
ratio = c("16by9", "4by3"),
frameborder = 0,
allowfullscreen = TRUE
)
embed_msstream(
id,
width = NULL,
height = 300,
ratio = c("16by9", "4by3"),
query = NULL
)
embed_vimeo(
id,
width = NULL,
height = 300,
ratio = c("16by9", "4by3"),
frameborder = 0,
allowfullscreen = TRUE,
query = NULL,
fragment = NULL
)
embed_youtube(
id,
width = NULL,
height = 300,
ratio = c("16by9", "4by3"),
frameborder = 0,
allowfullscreen = TRUE,
query = NULL
)
Arguments
id |
|
custom_domain |
|
width |
|
height |
|
ratio |
|
frameborder |
|
allowfullscreen |
|
query |
|
fragment |
|
Details
These services allow you to customize a lot of things by specifying an optional query string. The specification for the query string will differ according to the service being used:
- YouTube
- Vimeo
- Box
https://developer.box.com/guides/embed/box-embed/#programmatically
- Microsoft Stream
Value
Object with S3 class vembedr_embed
.
See Also
Examples
embed_youtube("dQw4w9WgXcQ")
embed_vimeo("45196609")
embed_box("m5do45hvzw32iv2aors3urf5pgkxxazx")
embed_msstream("ae21b0ac-4a2b-41f4-b3fc-f1720dd20f48")