From c093affc0bc3b558c318d29dcc2240a36178a7df Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 14 Sep 2010 00:03:51 +0000 Subject: flashmovie update (9sep10) git-svn-id: svn://tug.org/texlive/trunk@19720 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/flashmovie/test-beamer.pdf | Bin 0 -> 895179 bytes .../doc/latex/flashmovie/test-beamer.tex | 149 ++++++++++++++ .../texmf-dist/doc/latex/flashmovie/test-flv.pdf | Bin 454864 -> 458748 bytes .../texmf-dist/doc/latex/flashmovie/test-flv.tex | 42 +++- Master/texmf-dist/doc/latex/flashmovie/test.tex | 5 + .../texmf-dist/tex/latex/flashmovie/flashmovie.sty | 220 ++++++++++++++------- 6 files changed, 335 insertions(+), 81 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/flashmovie/test-beamer.pdf create mode 100644 Master/texmf-dist/doc/latex/flashmovie/test-beamer.tex diff --git a/Master/texmf-dist/doc/latex/flashmovie/test-beamer.pdf b/Master/texmf-dist/doc/latex/flashmovie/test-beamer.pdf new file mode 100644 index 00000000000..8bf2195fa08 Binary files /dev/null and b/Master/texmf-dist/doc/latex/flashmovie/test-beamer.pdf differ diff --git a/Master/texmf-dist/doc/latex/flashmovie/test-beamer.tex b/Master/texmf-dist/doc/latex/flashmovie/test-beamer.tex new file mode 100644 index 00000000000..d67cf4e34f1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/flashmovie/test-beamer.tex @@ -0,0 +1,149 @@ +\RequirePackage{flashmovie} +% it is neccessay to use "\RequirePackage{flashmovie}" because beamer +% also uses "\pdfminorversion". see flashmovie.sty for an explanation. + +\documentclass[10pt]{beamer} + +\usepackage[english]{babel} +\usepackage{hyperref} + +\usetheme{Warsaw} % Warsaw,Hannover,boxes +\usecolortheme{rose} % orchid,lily,dolphin,beetle,crane +\usefonttheme{professionalfonts} % professionalfonts,serif +\useinnertheme{rounded} % rounded +\useoutertheme{shadow} % shadow,sidebar,split + +%--------------------------------------------- + +\setbeamersize{text margin left=0.3cm} % small margins +\setbeamersize{text margin right=0.3cm} + +%--------------------------------------------- +% for writing a document is is convenient to switch movies off. to do this, +% use "blank=1" as an option. in order to use the videos, use "blank=0". +% +% to make thinks easy, use "blank=\myblank" as an option and define +% \myblank as suitable. + +\def\myblank{0} +%\def\myblank{1} + +%--------------------------------------------- + +\title[flashmovie.sty]{flashmovie.sty} +\author[\href{mailto:thartmann15@googlemail.com}{Timo Hartmann}]{\href{mailto:thartmann15@googlemail.com}{Timo Hartmann}} + +\date[2010]{} + +%--------------------------------------------- + +\begin{document} + +\frame{ + +\titlepage + +\begin{block}{\alert{Warning}} +It is recommended to use the latest available version of the Adobe Reader +to view PDF files generated with flashmovie.sty. +% Otherwise your Adobe Reader may die a sudden painfull death... +\end{block} + +} % end frame + +%--------------------------------------------- + +\begin{frame} + +\frametitle{Basics} + +\begin{minipage}[t]{6.1cm} +\vspace{0cm} +\flashmovie[width=6cm,height=5cm]{saturn5.swf} +\end{minipage} +\begin{minipage}[t]{5.7cm} +\vspace{0cm} +This package allows direct embedding of flash movies into PDF files. It is +designed for use with pdflatex. +\vspace{0.5cm} + +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. + +\end{minipage} + +\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} ). + +\end{frame} + +%--------------------------------------------- + +\begin{frame}[fragile] + +\frametitle{Explanation} + +The source code used for the video on the previous page is: + +\begin{verbatim} +\flashmovie[width=6cm,height=5cm]{saturn5.swf} +\end{verbatim} + +This means that the movie is really a flash animation and is not +rendered by a player. So no controls are available. + +\end{frame} + +%--------------------------------------------- + +\begin{frame}[fragile] + +\frametitle{Issues with the flv-player} + +\begin{itemize} + +\item Sadly the flv-player does not work reliably with the latex package +beamer. If you try it, the acrobat reader often crashes while trying +to change the page. I have no idea what is the cause of this problem. + +\item The only reliable way to use beamer is to directly embed the videos +as flash animations. + +\item Another option is to use the JW player. It seems to work with beamer, +but is only rudimentary supported. + +\item Any competent help on this issue would be appreciated. This might be +another open source player which works with beamer or a fix of the flv-player +or something else. + +\end{itemize} + +\end{frame} + +%--------------------------------------------- + +\begin{frame}[fragile] + +\frametitle{Advanced use} + +Rich media annotations are not restricted to videos. +You can use flash animations, too. +Here for example is a clock written in action script: + +\flashmovie[width=8cm,height=5cm,blank=\myblank]{clock.swf} + +\begin{verbatim} + \flashmovie[width=8cm,height=5cm]{clock.swf} +\end{verbatim} + +\end{frame} + +%--------------------------------------------- + +\end{document} diff --git a/Master/texmf-dist/doc/latex/flashmovie/test-flv.pdf b/Master/texmf-dist/doc/latex/flashmovie/test-flv.pdf index bc487198f2b..b3bdcbf01fa 100644 Binary files a/Master/texmf-dist/doc/latex/flashmovie/test-flv.pdf and b/Master/texmf-dist/doc/latex/flashmovie/test-flv.pdf differ diff --git a/Master/texmf-dist/doc/latex/flashmovie/test-flv.tex b/Master/texmf-dist/doc/latex/flashmovie/test-flv.tex index b3bb182a1ce..bdc5e84b336 100644 --- a/Master/texmf-dist/doc/latex/flashmovie/test-flv.tex +++ b/Master/texmf-dist/doc/latex/flashmovie/test-flv.tex @@ -3,6 +3,7 @@ \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{hyperref} +\usepackage{color} \usepackage{flashmovie} @@ -15,11 +16,7 @@ designed for use with pdflatex. \flashmovie[width=10cm,height=10cm,engine=flv-player,auto=1]{saturn5.mp4} -\begin{verbatim} - \flashmovie[width=10cm,height=10cm,engine=flv-player,auto=1]{saturn5.mp4} -\end{verbatim} - -\vspace{1cm} +%\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 @@ -27,17 +24,36 @@ in ``Adobe Supplement to the ISO 32000 BaseVersion: 1.7 ExtensionLevel: 3''. \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} ). +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} -The movies in this document are rendered with the \href{http://flv-player.net}{``flv-player''} +\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. -\newpage +\vspace{1cm} {\Huge Examples}\\\\ @@ -45,6 +61,7 @@ besides directly embedding ``.swf'' files. \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} @@ -52,7 +69,16 @@ besides directly embedding ``.swf'' files. \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} diff --git a/Master/texmf-dist/doc/latex/flashmovie/test.tex b/Master/texmf-dist/doc/latex/flashmovie/test.tex index 1b1b65d0649..c59f9da9d4c 100644 --- a/Master/texmf-dist/doc/latex/flashmovie/test.tex +++ b/Master/texmf-dist/doc/latex/flashmovie/test.tex @@ -14,6 +14,11 @@ This package allows direct embedding of flash movies into PDF files. It is designed for use with pdflatex. \flashmovie[width=10cm,height=10cm]{saturn5.swf} +%\flashmovie[width=10cm,height=10cm,engine=pure-swf]{saturn5.swf} +%\flashmovie[width=10cm,height=10cm,engine=blank]{saturn5.swf} +%\flashmovie[width=10cm,height=10cm,engine=flv-player]{saturn5.mp4} +%\flashmovie[width=10cm,height=10cm,engine=flv-player,blank=0]{saturn5.mp4} +%\flashmovie[width=10cm,height=10cm,engine=flv-player,blank=1]{saturn5.mp4} %\flashmovie[width=10cm,height=10cm,engine=acropro]{saturn5.mp4} %\flashmovie[width=10cm,height=10cm,engine=jw-player]{saturn5.mp4} %\flashmovie[width=10cm,height=10cm,engine=osplayer]{saturn5.mp4} diff --git a/Master/texmf-dist/tex/latex/flashmovie/flashmovie.sty b/Master/texmf-dist/tex/latex/flashmovie/flashmovie.sty index 051b5971da1..0603e59a3b9 100644 --- a/Master/texmf-dist/tex/latex/flashmovie/flashmovie.sty +++ b/Master/texmf-dist/tex/latex/flashmovie/flashmovie.sty @@ -1,7 +1,14 @@ %%%%%%%%%%%%% flashmovie.sty %%%%%%%%%%%%% Copyright 2010 Timo Hartmann (thartmann15 at googlemail.com) % -% Version 0.2 +% Version 0.3 +% +% changelog: +% 0.3 : 2010-09-09 : better examples,minor bug fixes, issues with beamer explained +% 0.2 : 2010-04-21 : major overhaul: keyval 'engine', flv-player-engine, +% efficient multiple embedding of files,... +% 0.1 : 2010-04-13 : a bunch of bugfixes +% 0.0 : 2009-12-06 : initial release % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % @@ -32,11 +39,6 @@ % - Marco Aurélio Graciotto Silva % - neolao % -% changelog: -% 0.2 : 2010-04-21 : major overhaul: keyval 'engine', flv-player-engine,... -% 0.1 : 2010-04-13 : a bunch of bugfixes -% 0.0 : 2009-12-06 : initial release -% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This package allows direct embedding of flash movies into PDF files. It is @@ -63,8 +65,13 @@ % Both files (the video and the flash-video-player) will be % embedded into the pdf. See example(2) below. % Different video formats (mp4/flv/whatever-the-flash-video-player-accepts/...) -% can be used. Controls are available (depends on the player). +% can be used. Controls are available (depending on the player). % See example (2) below. +% Using the keyword "engine" one can select the method of embedding. +% If you omit it or if you specify "engine=pure-swf" then the file will be +% directly embedded. This works only for swf-files. +% For other possible values of "engine" see the chapter "flash-video-players". +% % % flash-video-players: % There are several flash-video-players available which fit the needs @@ -83,7 +90,7 @@ % supported parameters: % auto=0 --> auto-play off (default) % auto=1 --> auto-play on -% image=some.jpeg --> start-image (not necessary) +% image=someimage.jpeg --> start-image (not necessary) % % - "engine=acropro". This is an commercial player which is distributed with % Acrobat 9 Pro. You have to obtain VideoPlayer.swf and SkinOverPlaySeekStop.swf @@ -93,14 +100,27 @@ % - "engine=jw-player". This is the JW player from http://www.longtailvideo.com/players/jw-flv-player. % You have to obtain player.swf from that site and put it in the working directory in order % to use this module. -% It is NOT included with this distribution. +% It is NOT included in this distribution. % For this player flashmovie.sty only provides rudimentary support. % - "engine=osplayer". This is an open-source player from http://www.osflv.com % You have to obtain OSplayer.swf from that site and put it in the working directory in order % to use this module. -% It is NOT included with this distribution. +% It is NOT included in this distribution. % For this player flashmovie.sty only provides rudimentary support. % +% other options for the "engine"-keyword: +% - "engine=pure-swf" : This directly embedds the file into the PDF without +% any flash-video-player. This is the default option when you omit the +% "engine"-keyword. This works only for swf-files. +% - "engine=blank" : This simply produces an empty rectangle instead of an +% flash animation. This is useful during the creation process of the +% PDF because flash animations inside a PDF can easily crash +% the Adobe reader with the reload (CTRL-R) feature after recompiling +% the tex-file. +% The same effect can be produced if uses "blank=1" as an option +% regardless what the value of "engine" is. +% example: \flashmovie[...,engine=flv-player,blank=1,...]{...} +% % % example (1) % - download a video file to use, for example @@ -141,7 +161,39 @@ % todo: % - make more options of rich-media annotations usable, for example activation by clicking, play-count,... % +% tips: +% - It is in principle possible to insert any flash animation into a PDF. +% One is not restricted to videos. +% - During development of the PDF one can switch of the flash animations which +% is sometimes useful. See "engine=blank" or "blank=1" for more information. +% +% troubleshooting: +% - If you encounter the error message "\pdfminorversion cannot be changed after data is written to the PDF file.", +% then another package is also setting the variable "\pdfminorversion". +% For example the package "beamer" does so. +% There are two solutions: +% - Include the package with the highest "\pdfminorversion" first. +% For example put "\RequirePackage{flashmovie}" on the very first line +% of your file instead of using "\usepackage{flashmovie}" later on. +% Or rearrange the usepackage-commands in the right order. +% - Comment the line "\ifnum\pdfminorversion<7 \pdfminorversion=7\fi" in +% "flashmovie.sty". This will probably leave your PDF with the wrong +% version information, but the Adobe Reader will take it anyway. +% - There seems to be some trouble with the latex package beamer. You can't use +% the flv-player reliably with it. It is prone to crash the acrobat reader while +% changing pages. +% The only reliable way to use beamer is to directly embed the videos as +% flash animations. +% Another option is to use the JW player. It seems to work with beamer, +% but is only rudimentary supported. +% Any competent help on this issue would be appreciated. This might be +% another open source player which works with beamer or a fix of the flv-player +% or something else. +% % warning: +% - It is recommended to use always the latest available version of the Adobe Reader. +% This should be mandatory because in the past many attacks on computers were based +% on 'evil' PDFs which exploited security holes in this software. % - Because the file names of the movies are directly embedded into the PDFs please use only % "normal" file names. More specific use only names compatible with internal PDF strings. % There is even a specification what conforming file names are (see the PDF reference). @@ -161,6 +213,7 @@ \def\flashmovieimage{} \def\flashmovieauto{0} \def\flashmovieengine{} + \def\flashmoviekblank{0} } \define@key{flashmovieparams}{width} {\def\flashmoviewidth {#1}} @@ -168,6 +221,7 @@ \define@key{flashmovieparams}{image} {\def\flashmovieimage {#1}} \define@key{flashmovieparams}{auto} {\def\flashmovieauto {#1}} \define@key{flashmovieparams}{engine} {\def\flashmovieengine {#1}} +\define@key{flashmovieparams}{blank} {\def\flashmoviekblank {#1}} \newlength{\flashmovie@width} \newlength{\flashmovie@height} @@ -228,12 +282,16 @@ \def\flashmovie{\@ifnextchar[\@flashmovie{\@flashmovie[]}} \def\@flashmovie[#1]#2{\flashmovieparamsclear \setkeys{flashmovieparams}{#1}{ - \ifx\flashmovieimage\flashmovieengine + + \ifthenelse{\equal{\flashmoviekblank}{\flashmoviezero}} + {}{\def\flashmovieengine{blank}} + + \ifx\flashmovieengine\flashmovieempty \flashmovie@pureswf[#1]{#2} \else \ifthenelse{\equal{\flashmovieengine}{pure-swf}} - {\flashmovie@puresef[#1]{#2}}{} + {\flashmovie@pureswf[#1]{#2}}{} \ifthenelse{\equal{\flashmovieengine}{flv-player}} {\flashmovie@flvplayer[#1]{#2}}{} @@ -247,6 +305,9 @@ \ifthenelse{\equal{\flashmovieengine}{osplayer}} {\flashmovie@osplayer[#1]{#2}}{} + \ifthenelse{\equal{\flashmovieengine}{blank}} + {\flashmovie@blank[#1]{#2}}{} + \fi }} @@ -256,9 +317,9 @@ \def\flashmovie@pureswf{\@ifnextchar[\@flashmovie@pureswf{\@flashmovie@pureswf[]}} \def\@flashmovie@pureswf[#1]#2{\flashmovieparamsclear \setkeys{flashmovieparams}{#1}{ - \newcount\configurationnum - \newcount\contentnum - \newcount\settingsnum + \newcount\flashmovie@n@config + \newcount\flashmovie@n@content + \newcount\flashmovie@n@settings \flashmovieembedfile{#2} \edef\flashmovie@e@video{\flashmovieembedded} @@ -273,23 +334,23 @@ >>] /Subtype /Flash >>} - \configurationnum=\pdflastobj + \flashmovie@n@config=\pdflastobj \immediate \pdfobj {<< /Assets << /Names [(#2) \flashmovie@e@video\space 0 R] >> - /Configurations [\the\configurationnum\space 0 R] + /Configurations [\the\flashmovie@n@config\space 0 R] >>} - \contentnum=\pdflastobj + \flashmovie@n@content=\pdflastobj \immediate \pdfobj {<< /Activation << /Type /RichMediaActivation - /Condition /PO - /Configuration \the\configurationnum\space 0 R + /Condition /PV + /Configuration \the\flashmovie@n@config\space 0 R /Animation << /Subtype /Linear /Speed 1 @@ -317,10 +378,10 @@ >> /Deactivation << /Type /RichMediaDeactivation - /Condition /XD + /Condition /PI >> >>} - \settingsnum=\pdflastobj + \flashmovie@n@settings=\pdflastobj \sbox{\flashmovie@content} {{\hbox to \flashmoviewidth {\vbox to \flashmovieheight { }}}} @@ -330,19 +391,31 @@ \pdfannot width \flashmovie@width height \flashmovie@height depth 0pt { /Subtype /RichMedia - /RichMediaContent \the\contentnum\space 0 R - /RichMediaSettings \the\settingsnum\space 0 R + /RichMediaContent \the\flashmovie@n@content\space 0 R + /RichMediaSettings \the\flashmovie@n@settings\space 0 R }}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% blank + +\def\flashmovie@blank{\@ifnextchar[\@flashmovie@blank{\@flashmovie@blank[]}} + +\def\@flashmovie@blank[#1]#2{\flashmovieparamsclear \setkeys{flashmovieparams}{#1}{ + \sbox{\flashmovie@content} {{\hbox to \flashmoviewidth {\vbox to \flashmovieheight { }}}} + \settowidth {\flashmovie@width} {\usebox{\flashmovie@content}} + \settoheight{\flashmovie@height}{\usebox{\flashmovie@content}} + \usebox{\flashmovie@content} +}} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % player from adobe acrobat pro \def\flashmovie@acropro{\@ifnextchar[\@flashmovie@acropro{\@flashmovie@acropro[]}} \def\@flashmovie@acropro[#1]#2{\flashmovieparamsclear \setkeys{flashmovieparams}{#1}{ - \newcount\configurationnum - \newcount\contentnum - \newcount\settingsnum + \newcount\flashmovie@n@config + \newcount\flashmovie@n@content + \newcount\flashmovie@n@settings \flashmovieembedfile{#2} \edef\flashmovie@e@video{\flashmovieembedded} @@ -367,23 +440,23 @@ >>] /Subtype /Flash >>} - \configurationnum=\pdflastobj + \flashmovie@n@config=\pdflastobj \immediate \pdfobj {<< /Assets << /Names [(#2) \flashmovie@e@video\space 0 R (skinover.swf) \flashmovie@e@skin\space 0 R (VideoPlayer.swf) \flashmovie@e@player\space 0 R] >> - /Configurations [\the\configurationnum\space 0 R] + /Configurations [\the\flashmovie@n@config\space 0 R] >>} - \contentnum=\pdflastobj + \flashmovie@n@content=\pdflastobj \immediate \pdfobj {<< /Activation << /Type /RichMediaActivation - /Condition /PO - /Configuration \the\configurationnum\space 0 R + /Condition /PV + /Configuration \the\flashmovie@n@config\space 0 R /Animation << /Subtype /Linear /Speed 1 @@ -411,10 +484,10 @@ >> /Deactivation << /Type /RichMediaDeactivation - /Condition /XD + /Condition /PI >> >>} - \settingsnum=\pdflastobj + \flashmovie@n@settings=\pdflastobj \sbox{\flashmovie@content} {{\hbox to \flashmoviewidth {\vbox to \flashmovieheight { }}}} @@ -424,8 +497,8 @@ \pdfannot width \flashmovie@width height \flashmovie@height depth 0pt { /Subtype /RichMedia - /RichMediaContent \the\contentnum\space 0 R - /RichMediaSettings \the\settingsnum\space 0 R + /RichMediaContent \the\flashmovie@n@content\space 0 R + /RichMediaSettings \the\flashmovie@n@settings\space 0 R }}} @@ -435,9 +508,9 @@ \def\flashmovie@flvplayer{\@ifnextchar[\@flashmovie@flvplayer{\@flashmovie@flvplayer[]}} \def\@flashmovie@flvplayer[#1]#2{\flashmovieparamsclear \setkeys{flashmovieparams}{#1}{ - \newcount\configurationnum - \newcount\contentnum - \newcount\settingsnum + \newcount\flashmovie@n@config + \newcount\flashmovie@n@content + \newcount\flashmovie@n@settings \flashmovieembedfile{#2} \edef\flashmovie@e@video{\flashmovieembedded} @@ -477,24 +550,24 @@ >>] /Subtype /Flash >>} - \configurationnum=\pdflastobj + \flashmovie@n@config=\pdflastobj \immediate \pdfobj {<< /Assets << /Names [(#2) \flashmovie@e@video\space 0 R (player_flv_maxi.swf) \flashmovie@e@player\space 0 R \flashmovieimagevarii] >> - /Configurations [\the\configurationnum\space 0 R] + /Configurations [\the\flashmovie@n@config\space 0 R] >>} - \contentnum=\pdflastobj + \flashmovie@n@content=\pdflastobj \immediate \pdfobj {<< /Activation << /Type /RichMediaActivation - /Condition /PO - /Configuration \the\configurationnum\space 0 R + /Condition /PV + /Configuration \the\flashmovie@n@config\space 0 R /Animation << /Subtype /Linear /Speed 1 @@ -522,10 +595,10 @@ >> /Deactivation << /Type /RichMediaDeactivation - /Condition /XD + /Condition /PI >> >>} - \settingsnum=\pdflastobj + \flashmovie@n@settings=\pdflastobj \sbox{\flashmovie@content} {{\hbox to \flashmoviewidth {\vbox to \flashmovieheight { }}}} @@ -535,8 +608,8 @@ \pdfannot width \flashmovie@width height \flashmovie@height depth 0pt { /Subtype /RichMedia - /RichMediaContent \the\contentnum\space 0 R - /RichMediaSettings \the\settingsnum\space 0 R } + /RichMediaContent \the\flashmovie@n@content\space 0 R + /RichMediaSettings \the\flashmovie@n@settings\space 0 R } }} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -545,9 +618,9 @@ \def\flashmovie@jwplayer{\@ifnextchar[\@flashmovie@jwplayer{\@flashmovie@jwplayer[]}} \def\@flashmovie@jwplayer[#1]#2{\flashmovieparamsclear \setkeys{flashmovieparams}{#1}{ - \newcount\configurationnum - \newcount\contentnum - \newcount\settingsnum + \newcount\flashmovie@n@config + \newcount\flashmovie@n@content + \newcount\flashmovie@n@settings \flashmovieembedfile{#2} \edef\flashmovie@e@video{\flashmovieembedded} @@ -569,24 +642,24 @@ >>] /Subtype /Flash >>} - \configurationnum=\pdflastobj + \flashmovie@n@config=\pdflastobj \immediate \pdfobj {<< /Assets << /Names [(#2) \flashmovie@e@video\space 0 R (player.swf) \flashmovie@e@player\space 0 R] >> - /Configurations [\the\configurationnum\space 0 R] + /Configurations [\the\flashmovie@n@config\space 0 R] >>} - \contentnum=\pdflastobj + \flashmovie@n@content=\pdflastobj \immediate \pdfobj {<< /Activation << /Type /RichMediaActivation - /Condition /PO - /Configuration \the\configurationnum\space 0 R + /Condition /PV + /Configuration \the\flashmovie@n@config\space 0 R /Animation << /Subtype /Linear /Speed 1 @@ -614,10 +687,10 @@ >> /Deactivation << /Type /RichMediaDeactivation - /Condition /XD + /Condition /PI >> >>} - \settingsnum=\pdflastobj + \flashmovie@n@settings=\pdflastobj \sbox{\flashmovie@content} {{\hbox to \flashmoviewidth {\vbox to \flashmovieheight { }}}} @@ -627,8 +700,8 @@ \pdfannot width \flashmovie@width height \flashmovie@height depth 0pt { /Subtype /RichMedia - /RichMediaContent \the\contentnum\space 0 R - /RichMediaSettings \the\settingsnum\space 0 R } + /RichMediaContent \the\flashmovie@n@content\space 0 R + /RichMediaSettings \the\flashmovie@n@settings\space 0 R } }} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -637,9 +710,9 @@ \def\flashmovie@osplayer{\@ifnextchar[\@flashmovie@osplayer{\@flashmovie@osplayer[]}} \def\@flashmovie@osplayer[#1]#2{\flashmovieparamsclear \setkeys{flashmovieparams}{#1}{ - \newcount\configurationnum - \newcount\contentnum - \newcount\settingsnum + \newcount\flashmovie@n@config + \newcount\flashmovie@n@content + \newcount\flashmovie@n@settings \flashmovieembedfile{#2} \edef\flashmovie@e@video{\flashmovieembedded} @@ -661,24 +734,24 @@ >>] /Subtype /Flash >>} - \configurationnum=\pdflastobj + \flashmovie@n@config=\pdflastobj \immediate \pdfobj {<< /Assets << /Names [(#2) \flashmovie@e@video\space 0 R (OSplayer.swf) \flashmovie@e@player\space 0 R] >> - /Configurations [\the\configurationnum\space 0 R] + /Configurations [\the\flashmovie@n@config\space 0 R] >>} - \contentnum=\pdflastobj + \flashmovie@n@content=\pdflastobj \immediate \pdfobj {<< /Activation << /Type /RichMediaActivation - /Condition /PO - /Configuration \the\configurationnum\space 0 R + /Condition /PV + /Configuration \the\flashmovie@n@config\space 0 R /Animation << /Subtype /Linear /Speed 1 @@ -706,10 +779,10 @@ >> /Deactivation << /Type /RichMediaDeactivation - /Condition /XD + /Condition /PI >> >>} - \settingsnum=\pdflastobj + \flashmovie@n@settings=\pdflastobj \sbox{\flashmovie@content} {{\hbox to \flashmoviewidth {\vbox to \flashmovieheight { }}}} @@ -719,6 +792,7 @@ \pdfannot width \flashmovie@width height \flashmovie@height depth 0pt { /Subtype /RichMedia - /RichMediaContent \the\contentnum\space 0 R - /RichMediaSettings \the\settingsnum\space 0 R } -}} \ No newline at end of file + /RichMediaContent \the\flashmovie@n@content\space 0 R + /RichMediaSettings \the\flashmovie@n@settings\space 0 R } +}} + -- cgit v1.2.3