如何使用 media9 水平嵌入 3 个视频?

如何使用 media9 水平嵌入 3 个视频?

我正在使用media9包。我想水平插入 3 个视频,然后在下一行再插入 2 个视频。

\includemedia[
  activate=pageopen,
  width=50pt,height=50pt,
  addresource=camera1-.mp4,
  flashvars={%
     source=camera1-.mp4% same path as in addresource!
   &autoPlay=true%    % optional configuration
   &loop=true%        % variables
  }  
]{}{VPlayer.swf}

\includemedia[
  activate=pageopen,
  width=50pt,height=50pt,
  addresource=camera2-.mp4,
  flashvars={%
     source=camera2-.mp4% same path as in addresource!
   &autoPlay=true%    % optional configuration
   &loop=true%        % variables
  }  
]{}{VPlayer.swf}

\includemedia[
  activate=pageopen,
  width=50pt,height=50pt,
  addresource=camera6-.mp4,
  flashvars={%
     source=camera6-.mp4% same path as in addresource!
   &autoPlay=true%    % optional configuration
   &loop=true%        % variables
  }  
]{}{VPlayer.swf}

\includemedia[
  activate=pageopen,
  width=50pt,height=50pt,
  addresource=camera4-.mp4,
  flashvars={%
     source=camera4-.mp4% same path as in addresource!
   &autoPlay=true%    % optional configuration
   &loop=true%        % variables
  }  
]{}{VPlayer.swf}

\includemedia[
  activate=pageopen,
  width=50pt,height=50pt,
  addresource=camera7-.mp4,
  flashvars={%
     source=camera7-.mp4% same path as in addresource!
   &autoPlay=true%    % optional configuration
   &loop=true%        % variables
  }  
]{}{VPlayer.swf}

请帮忙!

答案1

\includemedia行为类似于\includegraphics或类似于任何其他 TeX 框:它们一个接一个地放置。如果用空格分隔,则那些不适合当前文本行的框将移动到下一个,并\\强制换行。

尝试以下方法:

\documentclass{article}
\usepackage[draft]{media9}

\begin{document}
\noindent Text before\\
\includemedia[width=50pt,height=50pt]{}{}\includemedia[width=50pt,height=50pt]{}{}\includemedia[width=50pt,height=50pt]{}{}\\
\includemedia[width=50pt,height=50pt]{}{}\includemedia[width=50pt,height=50pt]{}{}\\
Text after.
\end{document}

在此处输入图片描述

相关内容