Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to embed video (avi/mpg4) in Xaringan slides

I'm trying to embed some local videos into my xaringsn presentation. I've succesfully embedded GIFs but I need more quality and AVI or MPG4 are mandatory

The issue is I can't get the video embedded no matter if I use markdown syntax or html syntax

![video](media/animation.avi)


<video width="320" height="240">
<source src="media/animation.mp4" type="video/mp4">
</video>

any hint would be much appreciated

like image 578
Forge Avatar asked Nov 06 '18 16:11

Forge


1 Answers

Your latter one with video should work. Just won't show up on the RStudio Viewer Pane so check using another browser, e.g. Google Chrome.

like image 121
Emi Avatar answered Oct 15 '22 22:10

Emi