Function embedding a video as an iframe in a html page

add_video(vid, width = "100%", height = "100%", start = 0, host = "Youtube")

Arguments

vid

Character. ID of the video.

width

Character. Width of the video.

height

Character. Height of the video.

start

Numeric. Time at which the video should start.

host

Character. Name of the hosting platform. For now, only "Youtube" is supported.

Value

Write the HTML code embedding the videos.

Author

Nicolas Mangin