I use the following code to embed videos into my beamer presentation (shamelessly stolen of course):
\newcommand{\fullFrameMovie}[4][loop]
{
{
\setbeamercolor{background canvas}{bg=black}
\frame[plain]
{
\begin{textblock*}{\paperwidth}(0\paperwidth,0\paperheight)
\centering
\vbox to 0.95\paperheight {
\vfil{
\href{run:#2?autostart}{\includegraphics[width=\paperwidth,height=0.95\paperheight,keepaspectratio]{#3}}
}
\vfil
}
\end{textblock*}
#4
}
}
}
\fullFrameMovie[]{videos/flockingvideo.mp4}{videos/flockingvideo.jpg}{\CopyrightText{Apollo 17, NASA}}
This runs smoothly with pdfpc
on ubuntu 14.04, but evince
complains about being unable to launch external application
and adobe reader dc (windows 10), complains about being unable to open file videos/flockingvideo.mp4?autostart&loop
.
The last one is quite understandable if the code I am using is not universally accepted to convey such information as looping and autostart. Maybe evince has the same problem as well.
I am quite happy, that I can present with my ubuntu, but the reality of things are, that I will probably have to present on windows machines usually, so it would be nice to have a pdf that really is "portable" as its name suggests :) Is there a more universal way to specify autostart and loop? I could live without loop.
If there isn't one: does anybody know a solution to create pdf with videos that play both on linux (preferably with pdfpc) and on windows (i.e. adobe reader on windows)? Even better if it also works with lualatex
and xelatex
. Right now I know how to embed flash, that play nice on windows but not on linux and the above method, which doesn't play on windows.