I am using the movie15_dvipdfmx package to embed movies to my textbook when it is compiled with XeLaTeX or the movie15 package when it is compiled with PDFLaTeX.
Here is my code for the PDFLaTeX compiler:
\usepackage{movie15}
...
\includemovie[
label=movie-04-09
,mouse=true
,text={\includegraphics[width=\textwidth]{2011-04-09}}
]{}{}{Video/2011-04-09.swf}
...
\movieref[pause]{movie-04-09}{ Video }
It makes poster from 2011-04-09.pdf and imports flash movie 2011-04-09.swf. Everything works as expected, in particular the last command in the above code produces bottom Video
which starts or pause playback of the movie.
Same code for XeLaTeX looks a bit different:
\usepackage[dvipdfmx]{movie15_dvipdfmx}
...
\includemovie[
label=movie-04-09
,mouse=true
,text={\includegraphics[width=\textwidth]{2011-04-09}}
]{}{}{Video/2011-04-09.swf}
...
\movieref[pause]{movie-04-09}{ Video }
The bottom does not operate, and click on the poster yields the message
Warning: Javascript window: Expected a stream object
If I substitute 2011-04-09.swf with AVI movie, click on the poster launch the movie but the button still does not operate.
Actually I am satisfied with version of my textbook produced by PDFLaTeX but I would like to invoke XeLaTeX in order to experiment with different fonts. I suspect that XeTeX + movie15_dvipdfmx currently are not able to import flash movies but my experience is limited by only two SWF movies. Origin of my troubles may reside in my SWF files.
Can somebody share here his experience on importing SWF movies into PDFdocuments, especially produced by xelatex.