Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm successfully using the media9 package to compile presentation pdf's with embedded mp4 files. The problem is that after the video is done, and I am ready to change to the next slide, it takes at least 10 seconds until the pdf renders the next page. I usually work in Linux, but I'm trying to use Windows just to play this presentation. I'm using MiKTeX 2.9 to compile the slides, and the version of media9 compiled on March 27, 2013.

My slide is as follows:

\begin{frame}[c]
  \begin{center}
    \includemedia[ label=vidA, 
           activate=onclick, 
           width=.95\textwidth,
           addresource=http://localhost//vid_mod.mp4,
           flashvars={src=http://localhost//vid_mod.mp4}
           ]{\fbox{~}}{StrobeMediaPlayback.swf}
  \end{center}
\end{frame}

I have tried using VPlayer.swf, and the videos did not play at all. I have also tried embedding the videos directly into the pdf i.e. not using a local webserver, and I get the same behavior. Any suggestions?

share|improve this question
    
Welcome to TeX.SX! –  Papiro Jun 18 '13 at 22:36
    
The deactivate=onclick option definitely seemed to help the situation significantly! Thanks for the advice. If you make it an answer, I'd be happy to accept it. –  jarvisschultz Jun 21 '13 at 17:35
add comment

1 Answer

up vote 2 down vote accepted

The reason for VPlayer not working might be a wrong FlashVar for setting the video source. It must read source=... for VPlayer, while src=... for Strobe.

Try deactivate=onclick. This keeps the video + player app loaded when leaving the slide, and might reduce latency.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.