Within one beamer frame, I want a video clip to play once. I then want text to appear and the final frame of the clip to remain visible. To avoid clicking the video, I use the activate=pageopen
option inside of the media9
\includemedia
funtion. As a result, when the text appears, the video replays since it is embedded into that slide as well.
I'm open to any solution that accomplishes the goal above, but one thing I tried is to include the actual video on only the first slide and, for subsequent slides, include a "video" which is just the final frame (without sound) of the actual video. Here is a MWE (except for the missing video files of course):
\documentclass{beamer}
\usepackage{media9}
\begin{document}
\begin{frame}{Video and Text Frame}
\only<1>%
{%
\includemedia%
[%
width=\textwidth,%
height=.5625\textwidth,%
activate=pageopen,%
deactivate=onclick,%
addresource=VideoClip.mp4,%
flashvars=%
{%
source=VideoClip.mp4&%
autoPlay=true&%
loop=false%
}%
]%
{}{VPlayer.swf}%
}%
\only<2>%
{%
\includemedia%
[%
width=\textwidth,%
height=.5625\textwidth,%
activate=pageopen,%
deactivate=onclick,%
addresource=OneFrameVideo.mp4,%
flashvars=%
{%
source=OneFrameVideo.mp4&%
autoPlay=true&%
loop=false%
}%
]%
{}{VPlayer.swf}%
}
\onslide<2>{Text that appears}
\end{frame}
\end{document}
The problem is that the videos, particularly the single frame video, take a moment to appear. The result is a very ugly slide transition as the first video momentarily disappears before the second video replaces it. Is there a way to make the appearance of the videos more seamless? If I click through the pdf once, the ugly gap disappears (because the pdf viewer has already loaded the videos?), but it ruins the auto play feature on the frame in question and in other unrelated frames.
I also tried using \includegraphics
with an image of the last frame, but the sizes were a bit off (making for a transition that is ugly in a different way) no matter how I attempted to set the width
.