12

I have a long-standing problem with the button produced by the \movieref command from movie15 package. Briefly saying, it does not work at all if my document is compiled with XeLaTeX whereas the button operates as described in the movie15 manual if my document is compiled with pdflatex. Note that the source files for PdfLaTeX and XeLaTeX are slightly different. For XeLaTeX the document preamble contains

\usepackage[dvipdfmx]{movie15_dvipdfmx}

and for PDFLaTeX I am using

\usepackage{movie15}

Other chunck of code is the same for both cases. First, I declare a \RunVideo command that is just an image used for the button:

\DeclareRobustCommand*{\RunVideo}{\raisebox{-0.25\height}\includegraphics[width=1.5em]{icon_video.png}}}

Next I include my movie:

\includemovie[
    label=movie-04-03
    ,mouse=true
        % Enables mouse interaction: Clicking onto the media
        % (giving it the focus) pauses the playback while clicking
        % outside resumes it. Alternatively, once the media has
        % got the focus, repeated pressing of key ‘P’ on the keyboard
        % switches between Play and Pause (at least with some players).
    ,text={\includegraphics[width=\textwidth]{2010-04-03.png}}
]{}{}{Video/2010-04-03-xvid.avi}

And finally the button goes here:

\movieref[pause]{movie-04-03}{\RunVideo}

If the document is compiled with PDFLaTeX clicking the button image cyclically starts/stops/resumes playback. Playback can also be stopped/resumed by clicking onto/outside the movie area. If the document is compiled with XeLaTeX only the second methods works, and clicking on the buttom has no effect at all.

Can someone explain if the code has some drawback of it is a bug of the movie15_dvipdfmx package?

2
  • 3
    movie15 has been superseded by media9, and XeTeX is mentioned in the manual. Does this new package work for you?
    – Joseph Wright
    Mar 24, 2012 at 7:54
  • @Joseph Wright: media9 does not play my avi file encoded with xvid codec although movie15 did that. I tried examples that come media9 and they work fine. I have several avi files made using same technology (exported avi from Wolfram Mathematica and then encoded using VirtualDub) therefore I didnot tried any other codecs yet. Mar 26, 2012 at 16:53

0

Browse other questions tagged .