I want to include a movie and a 3D image in my Latex document using media9.
The movie works as expected when compiled alone.
The 3D image works as expected when compiled alone.
When the movie is before the 3D image in the latex document then both work perfectly.
However, if the movie is after the 3D image in the latex document then the movie does not play any more. Only a white box appears where the movie should be.
I have the same results if using the VPlayer.swf or the StrobeMediaPlayback.swf for the movie.
I have read forums and the media9 documentation without any luck in finding a solution.
Does anyone know how to have a functioning movie that follows a functioning 3D image?
I have a MWE of the 3D image followed by the movie. The attached zip file contains the movie and 3d file and images of the two.
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{media9}
\begin{document}
% 3d Image
\begin{figure}
\begin{center}
\includemedia[
3Dcoo=-0.0027 0.046 0.0028,
3Dc2c=0.008 0.30 0.95,
3Droo=0.25,
3Droll=177.9,
3Dlights=White,
width=0.45\linewidth,
height=0.45\linewidth,
activate=pagevisible,
]{\includegraphics[scale=1]{tank_master.png}}{tank_master.u3d}
\end{center}
\caption{3d image}
\end{figure}
% Movie
\begin{figure}
\includemedia[
label=movie_file,
width=0.45\linewidth,
height=150 pt,
activate=pageopen,
addresource=hcbase_speciestransport_carreau.mp4,
flashvars={%
source=hcbase_speciestransport_carreau.mp4
% src=hcbase_speciestransport_carreau.mp4 %use src when using StrobeMediaPlayback.swf
}
]{\includegraphics{hcbase_speciestransport_carreau.png}}{VPlayer.swf}%{StrobeMediaPlayback.swf}
\end{figure}
\end{document}