You can use this function to embed video using only the URL and you do not need any customization beyond the start-time. It works for all the services supported by the embed() family of functions.

embed_url(url)

Arguments

url

character, URL of web-page for video

Value

Object with S3 class vembedr_embed.

Details

This function calls suggest_embed() then parses and evaluates the code.

See also

Examples

embed_url("https://youtu.be/1-vcErOPofQ?t=28s")
#> <div class="vembedr">
#>   <div>
#>     <iframe src="https://www.youtube.com/embed/1-vcErOPofQ?start=28" width="533" height="300" frameborder="0" allowfullscreen="" data-external="1"></iframe>
#>   </div>
#> </div>