VanillaThunder wrote:Hello,
I am using the media9 package to include several animations into my document. For this purpose I am using the following code:
Code: Select all
\begin{figure}[H]
\includemedia[
activate=pageopen,
width=\VideoWidth,height=\VideoHeight,
addresource=###file###.flv,
flashvars={src=###file###.flv&scaleMode=letterbox&controlBarAutoHideTimeout=1}
]{}{StrobeMediaPlayback.swf}
\caption{###Caption###}
\end{figure}
1. Is it possible to only set the width or height and the other value will be set automatically?
TeX cannot parse media files. You will have to provide the information about the video size by either using both options or by supplying a poster text or image (read on!).
VanillaThunder wrote:
2. Is it possible to set an alternative image or select a frame of the animation that will be displayed when the document gets printed?
This is the purpose of the (currently empty, in your example) poster argument. You can \includegraphics an image file there. It will be shown in case the video is not activated, and it gets printed. Moreover, the poster dimensions are used to determine the size of the video box, making resizing options (width, height, depth, scale) optional.
All this is written on the first pages of the media9 docs.