有人能帮我在 Beamer 中同时播放多个视频吗?我需要以 3x 3 网格的形式播放 9 个不同的视频。有什么建议可以解决我的问题吗?谢谢
答案1
此示例包含 3x3 网格视频,可使用当前 TeXLive-2018 进行编译。要自动播放视频,需要结合使用选项activate=pageopen
和 Flash 变量。使用 AR-DC 和 FlashPlayer-28.0.0.137 进行测试。autoPlay=true
\documentclass{beamer}
\usepackage[passcontext]{media9} %show right-click menu
\begin{document}
\begin{frame}{3x3 Video 16:9}
\setlength\lineskip{0pt}
\includemedia[
addresource=example-movie.mp4,
activate=pageopen,
flashvars={source=example-movie.mp4&autoPlay=true&loop=false},
width=\dimexpr\linewidth / 3\relax,
height=\dimexpr\linewidth * 3/16\relax
]{}{VPlayer.swf}%
\includemedia[
addresource=example-movie.mp4,
activate=pageopen,
flashvars={source=example-movie.mp4&autoPlay=true&loop=false},
width=\dimexpr\linewidth / 3\relax,
height=\dimexpr\linewidth * 3/16\relax
]{}{VPlayer.swf}%
\includemedia[
addresource=example-movie.mp4,
activate=pageopen,
flashvars={source=example-movie.mp4&autoPlay=true&loop=false},
width=\dimexpr\linewidth / 3\relax,
height=\dimexpr\linewidth * 3/16\relax
]{}{VPlayer.swf}\\
\includemedia[
addresource=example-movie.mp4,
activate=pageopen,
flashvars={source=example-movie.mp4&autoPlay=true&loop=false},
width=\dimexpr\linewidth / 3\relax,
height=\dimexpr\linewidth * 3/16\relax
]{}{VPlayer.swf}%
\includemedia[
addresource=example-movie.mp4,
activate=pageopen,
flashvars={source=example-movie.mp4&autoPlay=true&loop=false},
width=\dimexpr\linewidth / 3\relax,
height=\dimexpr\linewidth * 3/16\relax
]{}{VPlayer.swf}%
\includemedia[
addresource=example-movie.mp4,
activate=pageopen,
flashvars={source=example-movie.mp4&autoPlay=true&loop=false},
width=\dimexpr\linewidth / 3\relax,
height=\dimexpr\linewidth * 3/16\relax
]{}{VPlayer.swf}
\end{frame}
\end{document}