One way is to write the presentation in R markdown (Rmd) using Rstudio
Then you use knitr to export it to markdown.
And finally use pandoc to create the html slides.
This is just an example of how to include youtube videos on an html presentation.
Basically in the Rmd file you add the video using div and iframe html tags directly:
<div align="center">
<iframe width="560" height="315"
src="http://www.youtube.com/embed/9bZkp7q19f0"
frameborder="0" allowfullscreen>
</iframe></div>
Well, knitr is really made to include R code
summary(cars)
## speed dist
## Min. : 4.0 Min. : 2
## 1st Qu.:12.0 1st Qu.: 26
## Median :15.0 Median : 36
## Mean :15.4 Mean : 43
## 3rd Qu.:19.0 3rd Qu.: 56
## Max. :25.0 Max. :120
plot(cars, col = "blue")
And some equations
pandoc -s -S --webtex -t dzslides
filename.md -o outputName.html