summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/flashmovie/test-flv.tex
blob: bdc5e84b336805a37b8c02a54591b2bc6d24f6d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
\documentclass[10pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage{color}

\usepackage{flashmovie}

\begin{document}

{\Huge flashvideo.sty}\\\\

This package allows direct embedding of flash movies into PDF files. It is
designed for use with pdflatex.

\flashmovie[width=10cm,height=10cm,engine=flv-player,auto=1]{saturn5.mp4}

%\vspace{1cm}

Basically it uses the fact that the Adobe Reader 9 contains an embedded Adobe Flash 
player which can be invoked with the ``rich media annotation'' feature which is described 
in ``Adobe Supplement to the ISO 32000 BaseVersion: 1.7 ExtensionLevel: 3''.

\vspace{0.5cm}

This means that you can only use flashmovie.sty in combination
with Adobe Reader 9 and upwards.
% Otherwise your Adobe Reader may die a sudden painfull death...

\vspace{0.5cm}

\textcolor{red}{
  It is recommended to use the latest available version of the Adobe Reader
  to view PDF files generated with flashmovie.sty.
}

\vspace{0.5cm}

P.S.: This sample video is courtesy of the NASA ( \href{http://heasarc.gsfc.nasa.gov/Videos/historical/saturn5.avi}{saturn5.avi} ).

\newpage

The source code used for the video on the previous page is:

\begin{verbatim}
  \flashmovie[width=10cm,height=10cm,engine=flv-player,auto=1]{saturn5.mp4}
\end{verbatim}

This means that the movie is rendered with the \href{http://flv-player.net}{``flv-player''}
whose developer is neolao. This player is distributed under the
\href{http://www.mozilla.org/MPL/}{MPL version 1.1}.
It is included in this package and is the recommended way to use ``flashmovie.sty''
besides directly embedding ``.swf'' files.

\vspace{1cm}

{\Huge Examples}\\\\

\flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0]{saturn5.mp4}
\begin{verbatim}
  \flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0]{saturn5.mp4}
\end{verbatim}
In this example the video is not started before the user clicks on it.

\vspace{1cm}

\flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0,image=saturn.jpg]{saturn5.mp4}
\begin{verbatim}
  \flashmovie[width=8cm,height=5cm,engine=flv-player,auto=0,image=saturn.jpg]{saturn5.mp4}
\end{verbatim}
Here additionally an image is displayed before the movie starts.

\newpage

Rich media annotations are not restricted to videos.
Here for example is a clock written in action script:

\flashmovie[width=8cm,height=5cm]{clock.swf}
\begin{verbatim}
  \flashmovie[width=8cm,height=5cm]{clock.swf}
\end{verbatim}

\end{document}