Is there a way I can pause an embedded beamer video at some specified time point?
Video Playing Code (media9):
\includemedia[
width=\textwidth,height=0.5625\textwidth,
addresource=video.mp4,
flashvars={
source=video.mp4
&loop=true
&scaleMode=letterbox
}
]{}{VPlayer.swf}
I can probably split the video into two, have the first half play, then play the second half on click. But I am wondering if there is an easier solution?
Best Answer
You can insert a custom play button which also starts a (JavaScript-) timer to pause the video after a given time-out. In the example below, the video pauses 10 s after the play button has been pressed.
playPause
andpause
are ActionScript functions ofVPlayer.swf
which are exposed to the JavaScript engine of Adobe Reader. There are two ways of calling them from within\mediabutton
s, either via themediacommand
option or in ajsaction
script, passed as argument to thecallAS
(=call ActionScript) method of theAnnotRichMedia
object.