LaTex Beamer中插入视频

本文介绍如何使用LaTeX Beamer类在演示文稿中嵌入视频文件。通过调用media9包,可以轻松实现视频播放控制,并提供了一个示例说明如何在PDF文档中插入并播放视频。

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}}

References:

  1. User’s Guide to the Beamer Class, Version 3.01
  2. The media9 Package, v0.70
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值