| 1 |
\RequirePackage{flashmovie} |
| 2 |
% it is neccessay to use "\RequirePackage{flashmovie}" because beamer |
| 3 |
% also uses "\pdfminorversion". see flashmovie.sty for an explanation. |
| 4 |
|
| 5 |
%--------------------------------------------- |
| 6 |
% pure-flash-example |
| 7 |
%--------------------------------------------- |
| 8 |
|
| 9 |
\documentclass[10pt]{beamer} |
| 10 |
|
| 11 |
\usepackage[english]{babel} |
| 12 |
\usepackage{hyperref} |
| 13 |
|
| 14 |
\usetheme{Warsaw} % Warsaw,Hannover,boxes |
| 15 |
\usecolortheme{rose} % orchid,lily,dolphin,beetle,crane |
| 16 |
\usefonttheme{professionalfonts} % professionalfonts,serif |
| 17 |
\useinnertheme{rounded} % rounded |
| 18 |
\useoutertheme{shadow} % shadow,sidebar,split |
| 19 |
|
| 20 |
%--------------------------------------------- |
| 21 |
|
| 22 |
\setbeamersize{text margin left=0.3cm} % small margins |
| 23 |
\setbeamersize{text margin right=0.3cm} |
| 24 |
|
| 25 |
%--------------------------------------------- |
| 26 |
% for writing a document is is convenient to switch movies off. to do this, |
| 27 |
% use "blank=1" as an option. in order to use the videos, use "blank=0". |
| 28 |
% |
| 29 |
% to make thinks easy, use "blank=\myblank" as an option and define |
| 30 |
% \myblank as suitable. |
| 31 |
|
| 32 |
\def\myblank{0} |
| 33 |
%\def\myblank{1} |
| 34 |
|
| 35 |
%--------------------------------------------- |
| 36 |
|
| 37 |
\title[flashmovie.sty]{flashmovie.sty} |
| 38 |
\author[\href{mailto:[email protected]}{Timo Hartmann}]{\href{mailto:[email protected]}{Timo Hartmann}} |
| 39 |
|
| 40 |
\date[2010]{} |
| 41 |
|
| 42 |
%--------------------------------------------- |
| 43 |
|
| 44 |
\begin{document} |
| 45 |
|
| 46 |
\frame{ |
| 47 |
|
| 48 |
\titlepage |
| 49 |
|
| 50 |
\begin{block}{\alert{Warning}} |
| 51 |
It is recommended to use the latest available version of the Adobe Reader |
| 52 |
to view PDF files generated with flashmovie.sty. |
| 53 |
% Otherwise your Adobe Reader may die a sudden painfull death... |
| 54 |
\end{block} |
| 55 |
|
| 56 |
} % end frame |
| 57 |
|
| 58 |
%--------------------------------------------- |
| 59 |
|
| 60 |
\begin{frame} |
| 61 |
|
| 62 |
\frametitle{Basics} |
| 63 |
|
| 64 |
\begin{minipage}[t]{6.1cm} |
| 65 |
\vspace{0cm} |
| 66 |
\flashmovie[width=6cm,height=5cm]{saturn5.swf} |
| 67 |
\end{minipage} |
| 68 |
\begin{minipage}[t]{5.7cm} |
| 69 |
\vspace{0cm} |
| 70 |
This package allows direct embedding of flash movies into PDF files. It is |
| 71 |
designed for use with pdflatex. |
| 72 |
\vspace{0.5cm} |
| 73 |
|
| 74 |
Basically it uses the fact that the Adobe Reader 9 contains an embedded Adobe Flash |
| 75 |
player which can be invoked with the ``rich media annotation'' feature which is described |
| 76 |
in ``Adobe Supplement to the ISO 32000 BaseVersion: 1.7 ExtensionLevel: 3''. |
| 77 |
\vspace{0.5cm} |
| 78 |
|
| 79 |
This means that you can only use flashmovie.sty in combination |
| 80 |
with Adobe Reader 9 and upwards. |
| 81 |
|
| 82 |
\end{minipage} |
| 83 |
|
| 84 |
\vspace{0.5cm} |
| 85 |
|
| 86 |
P.S.: This sample video is courtesy of the NASA ( \href{http://heasarc.gsfc.nasa.gov/Videos/historical/saturn5.avi}{saturn5.avi} ). |
| 87 |
|
| 88 |
\end{frame} |
| 89 |
|
| 90 |
%--------------------------------------------- |
| 91 |
|
| 92 |
\begin{frame}[fragile] |
| 93 |
|
| 94 |
\frametitle{Explanation} |
| 95 |
|
| 96 |
The source code used for the video on the previous page is: |
| 97 |
|
| 98 |
\begin{verbatim} |
| 99 |
\flashmovie[width=6cm,height=5cm]{saturn5.swf} |
| 100 |
\end{verbatim} |
| 101 |
|
| 102 |
This means that the movie is really a flash animation and is not |
| 103 |
rendered by a player. So no controls are available. |
| 104 |
|
| 105 |
\end{frame} |
| 106 |
|
| 107 |
%--------------------------------------------- |
| 108 |
|
| 109 |
\begin{frame}[fragile] |
| 110 |
|
| 111 |
\frametitle{Issues with the flv-player} |
| 112 |
|
| 113 |
\begin{itemize} |
| 114 |
|
| 115 |
\item Sadly the flv-player does not work reliably with the latex package |
| 116 |
beamer. If you try it, the acrobat reader often crashes while trying |
| 117 |
to change the page. I have no idea what is the cause of this problem. |
| 118 |
|
| 119 |
\item The only reliable way to use beamer seems to be directly embedding the videos as |
| 120 |
flash animations or to use the JW player. |
| 121 |
|
| 122 |
\end{itemize} |
| 123 |
|
| 124 |
\end{frame} |
| 125 |
|
| 126 |
%--------------------------------------------- |
| 127 |
|
| 128 |
\begin{frame}[fragile] |
| 129 |
|
| 130 |
\frametitle{Advanced use} |
| 131 |
|
| 132 |
Rich media annotations are not restricted to videos. |
| 133 |
You can use flash animations, too. |
| 134 |
Here for example is a clock written in action script: |
| 135 |
|
| 136 |
\flashmovie[width=8cm,height=5cm,blank=\myblank]{clock.swf} |
| 137 |
|
| 138 |
\begin{verbatim} |
| 139 |
\flashmovie[width=8cm,height=5cm]{clock.swf} |
| 140 |
\end{verbatim} |
| 141 |
|
| 142 |
\end{frame} |
| 143 |
|
| 144 |
%--------------------------------------------- |
| 145 |
|
| 146 |
\end{document} |