Embedding Videos in LaTex Beamer
Introduction to inserting videos into slides.
Calling package
\usepackage[]{media9}
% A LATEX package for embedding interactive Adobe Flash (SWF) and 3D files (Adobe U3D & PRC) as well as video and sound files or streams (FLV, MP4/H.246, MP3) into PDF documents with Adobe Reader-9/X
compatibility.
Sample
\includemedia[
label=some_dice,
width=1.0\linewidth,height=0.675\linewidth, % 16:9
addresource=filename.mp4,
transparent,
activate=pageopen,
passcontext,
flashvars={
source=filename.mp4
&autoPlay=true % start playing on activation
&loop=true
}
]{}{VPlayer.swf}
% loop video
\mediabutton[
mediacommand=some_dice:playPause,
overface=\color{blue}{\fbox{\strut Play/Pause}},
downface=\color{red}{\fbox{\strut Play/Pause}}
]{\fbox{\strut Play/Pause}}
\mediabutton[
mediacommand=some_dice:setSource [(filename.mp4)]
]{\fbox{\strut Media Caption}}
本文介绍如何使用LaTeX Beamer类在演示文稿中嵌入视频文件。通过调用media9包,可以轻松实现视频播放控制,并提供了一个示例说明如何在PDF文档中插入并播放视频。
3731

被折叠的 条评论
为什么被折叠?



