embed_url: Embed video based on URL

Description Usage Arguments Details Value See Also Examples

View source: R/embed_url.R

Description

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.

Usage

1

Arguments

url

character, URL of web-page for video

Details

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

Value

Object with S3 class vembedr_embed

See Also

suggest_embed()

Examples

1
embed_url("https://youtu.be/1-vcErOPofQ?t=28s")

Example output

<iframe src="https://www.youtube.com/embed/1-vcErOPofQ?start=28" width="420" height="315" frameborder="0" allowfullscreen=""></iframe>

vembedr documentation built on Oct. 23, 2020, 8:26 p.m.