如何在一个幻灯片演示文稿中将多个视频并排放置

如何在一个幻灯片演示文稿中将多个视频并排放置

我可以使用以下方法轻松播放一部电影

\documentclass[11pt] {beamer}
\usepackage{movie15}
\begin{document}
\begin{frame}
\begin{figure}[ht]
\includemovie[poster,autoplay,text={\small play dead}]{6cm}{6cm}{dead.mp4}
\includemovie[poster,autoplay,text={\small run as fast as you can}]{6cm}{6cm}{run.mp4}
\end{figure}
\end{frame}
\end{document}

我想知道如何才能同时玩两个游戏。

我尝试使用其他解决方案,但出现错误,一台幻灯片投影机中可以并排显示两个视频吗?

\documentclass[11pt] {beamer}
    \usepackage{movie15}
\begin{document}
    \begin{frame}[t]
    \frametitle{ Results}
    \fbox{\begin{minipage}{.4\linewidth}
    \centering Heading A
    \includemedia[label = AA, width = \linewidth, height = 50mm, activate = pageopen]{}{run.mp4}
    \end{minipage}}
    \fbox{\begin{minipage}{.4\linewidth}
    \centering Heading B
    \includemedia[ label = BB, width = \linewidth, height = 50mm,  activate = pageopen]{}{run.mp4}
    \end{minipage}}
    \end{frame}
\end{document}

我收到类似错误:未定义的控制序列。...\centering Heading A\ includemedia [label =AA, width= \line...

答案1

两个视频并排显示,使用media9。右侧视频配置为在页面打开时自动播放并循环播放(无限重播):

\documentclass{beamer}
\usepackage{media9}

\begin{document}
\begin{frame}{Two videos}
\includemedia[
  addresource=example-movie.mp4,
  activate=pageopen,
  width=3.2cm,height=1.8cm,
  flashvars={
     source=example-movie.mp4
  }
]{}{VPlayer.swf}
\includemedia[
  addresource=example-movie.mp4,
  activate=pageopen,
  width=3.2cm,height=1.8cm,
  flashvars={
      source=example-movie.mp4
     &autoPlay=true
     &loop=true
  }
]{}{VPlayer.swf}
\end{frame}
\end{document}

相关内容