| 1 |
\documentclass[10pt]{article} |
| 2 |
|
| 3 |
\usepackage[utf8]{inputenc} |
| 4 |
\usepackage[english]{babel} |
| 5 |
\usepackage{hyperref} |
| 6 |
\usepackage{color} |
| 7 |
|
| 8 |
\usepackage{flashmovie} |
| 9 |
|
| 10 |
\begin{document} |
| 11 |
|
| 12 |
{\Huge flashvideo.sty}\\\\ |
| 13 |
|
| 14 |
This package allows direct embedding of flash movies into PDF files. It is |
| 15 |
designed for use with pdflatex. |
| 16 |
|
| 17 |
\flashmovie[width=10cm,height=10cm,engine=flv-player,auto=1]{saturn5.mp4} |
| 18 |
|
| 19 |
%\vspace{1cm} |
| 20 |
|
| 21 |
Basically it uses the fact that the Adobe Reader 9 contains an embedded Adobe Flash |
| 22 |
player which can be invoked with the ``rich media annotation'' feature which is described |
| 23 |
in ``Adobe Supplement to the ISO 32000 BaseVersion: 1.7 ExtensionLevel: 3''. |
| 24 |
|
| 25 |
\vspace{0.5cm} |
| 26 |
|
| 27 |
This means that you can only use flashmovie.sty in combination |
| 28 |
with Adobe Reader 9 and upwards. |
| 29 |
% Otherwise your Adobe Reader may die a sudden painfull death... |
| 30 |
|
| 31 |
\vspace{0.5cm} |
| 32 |
|
| 33 |
\textcolor{red}{ |
| 34 |
It is recommended to use the latest available version of the Adobe Reader |
| 35 |
to view PDF files generated with flashmovie.sty. |
| 36 |
} |
| 37 |
|
| 38 |
\vspace{0.5cm} |
| 39 |
|
| 40 |
P.S.: This sample video is courtesy of the NASA ( \href{http://heasarc.gsfc.nasa.gov/Videos/historical/saturn5.avi}{saturn5.avi} ). |
| 41 |
|
| 42 |
\newpage |
| 43 |
|
| 44 |
The source code used for the video on the previous page is: |
| 45 |
|
| 46 |
\begin{verbatim} |
| 47 |
\flashmovie[width=10cm,height=10cm,engine=flv-player,auto=1]{saturn5.mp4} |
| 48 |
\end{verbatim} |
| 49 |
|
| 50 |
This means that the movie is rendered with the \href{http://flv-player.net}{``flv-player''} |
| 51 |
whose developer is neolao. This player is distributed under the |
| 52 |
\href{http://www.mozilla.org/MPL/}{MPL version 1.1}. |
| 53 |
It is included in this package and is the recommended way to use ``flashmovie.sty'' |
| 54 |
besides directly embedding ``.swf'' files. |
| 55 |
|
| 56 |
\vspace{1cm} |
| 57 |
|
| 58 |
{\Huge Examples}\\\\ |
| 59 |
|
| 60 |
\flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0]{saturn5.mp4} |
| 61 |
\begin{verbatim} |
| 62 |
\flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0]{saturn5.mp4} |
| 63 |
\end{verbatim} |
| 64 |
In this example the video is not started before the user clicks on it. |
| 65 |
|
| 66 |
\vspace{1cm} |
| 67 |
|
| 68 |
\flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0,image=saturn.jpg]{saturn5.mp4} |
| 69 |
\begin{verbatim} |
| 70 |
\flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0,image=saturn.jpg]{saturn5.mp4} |
| 71 |
\end{verbatim} |
| 72 |
Here additionally an image is displayed before the movie starts. |
| 73 |
|
| 74 |
\newpage |
| 75 |
|
| 76 |
Rich media annotations are not restricted to videos. |
| 77 |
Here for example is a clock written in action script: |
| 78 |
|
| 79 |
\flashmovie[width=8cm,height=5cm]{clock.swf} |
| 80 |
\begin{verbatim} |
| 81 |
\flashmovie[width=8cm,height=5cm]{clock.swf} |
| 82 |
\end{verbatim} |
| 83 |
|
| 84 |
\end{document} |