Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embed/include video #92

Closed
davidmeza1 opened this issue Apr 19, 2016 · 2 comments
Closed

embed/include video #92

davidmeza1 opened this issue Apr 19, 2016 · 2 comments
Milestone

Comments

@davidmeza1
Copy link

Is there a way to include a video, similar to include_graphics, where the video is contained in a folder within the book.

@yihui yihui changed the title embed/include video <enhancement> embed/include video Apr 19, 2016
@yihui
Copy link
Member

yihui commented Apr 19, 2016

At the moment, it is not straightforward to embed a local video file for PDF output. If you only need the HTML output, you can simply use htmltools::tags$video(src = ...), otherwise the only possibility is to upload the video somewhere like Youtube, and use knitr::include_url() to embed it, e.g.

```{r}
knitr::include_url("https://www.youtube.com/embed/9bZkp7q19f0")
```

@github-actions
Copy link

github-actions bot commented Nov 6, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants